public function TestSuiteBaseTest::provideCoreTests in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::provideCoreTests()
- 9 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 59
Class
- TestSuiteBaseTest
- @coversDefaultClass \Drupal\Tests\TestSuites\TestSuiteBase
Namespace
Drupal\Tests\Core\TestCode
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',
],
],
];
}