function TestSuiteBaseTest::provideCoreTests

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::provideCoreTests()
  2. 8.9.x core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::provideCoreTests()

Return value

array[] Test data for testAddTestsBySuiteNamespaceCore(). An array of arrays:

  • A filesystem array for vfsStream.
  • The sub-namespace of the test suite.
  • The array of tests expected to be discovered.

File

core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php, line 64

Class

TestSuiteBaseTest
@coversDefaultClass \Drupal\Tests\TestSuites\TestSuiteBase

Namespace

Drupal\Tests\Core\Test

Code

public function provideCoreTests() {
    $filesystem = $this->getFilesystem();
    return [
        'unit-tests' => [
            $filesystem,
            'Unit',
            [
                'Drupal\\Tests\\CoreUnitTest' => 'vfs://root/core/tests/Drupal/Tests/CoreUnitTest.php',
            ],
        ],
        'not-unit-tests' => [
            $filesystem,
            'NotUnit',
            [
                'Drupal\\NotUnitTests\\CoreNotUnitTest' => 'vfs://root/core/tests/Drupal/NotUnitTests/CoreNotUnitTest.php',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.