You are here

protected function TestSuiteBaseTest::getFilesystem in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\TestSuiteBaseTest::getFilesystem()
  2. 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\Test

Code

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',
              ],
            ],
          ],
        ],
      ],
    ],
  ];
}