function TestSuiteBaseTest::provideCoreTests
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::provideCoreTests()
- 10 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 67
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',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.