function FileStorageReadOnlyTest::setUp

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php \Drupal\Tests\Component\PhpStorage\FileStorageReadOnlyTest::setUp()
  2. 8.9.x core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php \Drupal\Tests\Component\PhpStorage\FileStorageReadOnlyTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php \Drupal\Tests\Component\PhpStorage\FileStorageReadOnlyTest::setUp()

Overrides PhpStorageTestBase::setUp

File

core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php, line 39

Class

FileStorageReadOnlyTest
@coversDefaultClass \Drupal\Component\PhpStorage\FileReadOnlyStorage[[api-linebreak]]

Namespace

Drupal\Tests\Component\PhpStorage

Code

protected function setUp() : void {
  parent::setUp();
  $this->standardSettings = [
    'directory' => $this->directory,
    'bin' => 'test',
  ];
  $this->readonlyStorage = [
    'directory' => $this->directory,
    // Let this read from the bin where the other instance is writing.
'bin' => 'test',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.