You are here

protected function FileTestBase::setUp in Zircon Profile 8

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

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

9 calls to FileTestBase::setUp()
NameMungingTest::setUp in core/modules/system/src/Tests/File/NameMungingTest.php
Performs setup tasks before each individual test method is run.
RemoteFileDirectoryTest::setUp in core/modules/system/src/Tests/File/RemoteFileDirectoryTest.php
Performs setup tasks before each individual test method is run.
RemoteFileUnmanagedCopyTest::setUp in core/modules/system/src/Tests/File/RemoteFileUnmanagedCopyTest.php
Performs setup tasks before each individual test method is run.
RemoteFileUnmanagedDeleteRecursiveTest::setUp in core/modules/system/src/Tests/File/RemoteFileUnmanagedDeleteRecursiveTest.php
Performs setup tasks before each individual test method is run.
RemoteFileUnmanagedDeleteTest::setUp in core/modules/system/src/Tests/File/RemoteFileUnmanagedDeleteTest.php
Performs setup tasks before each individual test method is run.

... See full list

9 methods override FileTestBase::setUp()
NameMungingTest::setUp in core/modules/system/src/Tests/File/NameMungingTest.php
Performs setup tasks before each individual test method is run.
RemoteFileDirectoryTest::setUp in core/modules/system/src/Tests/File/RemoteFileDirectoryTest.php
Performs setup tasks before each individual test method is run.
RemoteFileUnmanagedCopyTest::setUp in core/modules/system/src/Tests/File/RemoteFileUnmanagedCopyTest.php
Performs setup tasks before each individual test method is run.
RemoteFileUnmanagedDeleteRecursiveTest::setUp in core/modules/system/src/Tests/File/RemoteFileUnmanagedDeleteRecursiveTest.php
Performs setup tasks before each individual test method is run.
RemoteFileUnmanagedDeleteTest::setUp in core/modules/system/src/Tests/File/RemoteFileUnmanagedDeleteTest.php
Performs setup tasks before each individual test method is run.

... See full list

File

core/modules/system/src/Tests/File/FileTestBase.php, line 39
Contains \Drupal\system\Tests\File\FileTestBase.

Class

FileTestBase
Base class for file tests that adds some additional file specific assertions and helper functions.

Namespace

Drupal\system\Tests\File

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig(array(
    'system',
  ));
  $this
    ->registerStreamWrapper('private', 'Drupal\\Core\\StreamWrapper\\PrivateStream');
  if (isset($this->scheme)) {
    $this
      ->registerStreamWrapper($this->scheme, $this->classname);
  }
}