function TestSuiteBaseTest::getFilesystem
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::getFilesystem()
- 10 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::getFilesystem()
Helper method to set up the file system.
Return value
array[] A Drupal filesystem suitable for use with vfsStream.
1 call to TestSuiteBaseTest::getFilesystem()
- TestSuiteBaseTest::provideCoreTests in core/
tests/ Drupal/ Tests/ Core/ Test/ TestSuiteBaseTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ TestSuiteBaseTest.php, line 26
Class
- TestSuiteBaseTest
- @coversDefaultClass \Drupal\Tests\TestSuites\TestSuiteBase
Namespace
Drupal\Tests\Core\TestCode
protected function getFilesystem() {
return [
'core' => [
'modules' => [],
'profiles' => [],
'tests' => [
'Drupal' => [
'NotUnitTests' => [
'CoreNotUnitTest.php' => '<?php',
],
'Tests' => [
'CoreUnitTest.php' => '<?php',
// Ensure that the following files are not found as tests.
'Listeners' => [
'Listener.php' => '<?php',
'Legacy' => [
'Listener.php' => '<?php',
],
],
],
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.