protected function TestSuiteBaseTest::getFilesystem in Drupal 8
Same name and namespace in other branches
- 9 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 34 
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',
              ],
            ],
          ],
        ],
      ],
    ],
  ];
}