You are here

protected function ScanDirectoryTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/File/ScanDirectoryTest.php \Drupal\system\Tests\File\ScanDirectoryTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides FileTestBase::setUp

1 call to ScanDirectoryTest::setUp()
RemoteFileScanDirectoryTest::setUp in core/modules/system/src/Tests/File/RemoteFileScanDirectoryTest.php
Performs setup tasks before each individual test method is run.
1 method overrides ScanDirectoryTest::setUp()
RemoteFileScanDirectoryTest::setUp in core/modules/system/src/Tests/File/RemoteFileScanDirectoryTest.php
Performs setup tasks before each individual test method is run.

File

core/modules/system/src/Tests/File/ScanDirectoryTest.php, line 29
Contains \Drupal\system\Tests\File\ScanDirectoryTest.

Class

ScanDirectoryTest
Tests the file_scan_directory() function.

Namespace

Drupal\system\Tests\File

Code

protected function setUp() {
  parent::setUp();

  // Hardcode the location of the simpletest files as it is already known
  // and shouldn't change, and we don't yet have a way to retrieve their
  // location from drupal_get_filename() in a cached way.
  // @todo Remove as part of https://www.drupal.org/node/2186491
  $this->path = 'core/modules/simpletest/files';
}