function PhpStorageTestBase::setUp

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase::setUp()
  2. 10 core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase::setUp()
  3. 11.x core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase::setUp()
3 calls to PhpStorageTestBase::setUp()
FileStorageReadOnlyTest::setUp in core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php
FileStorageTest::setUp in core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php
MTimeProtectedFileStorageBase::setUp in core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageBase.php
3 methods override PhpStorageTestBase::setUp()
FileStorageReadOnlyTest::setUp in core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php
FileStorageTest::setUp in core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php
MTimeProtectedFileStorageBase::setUp in core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageBase.php

File

core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php, line 25

Class

PhpStorageTestBase
Base test for PHP storages.

Namespace

Drupal\Tests\Component\PhpStorage

Code

protected function setUp() {
    parent::setUp();
    vfsStream::setup('exampleDir');
    $this->directory = vfsStream::url('exampleDir');
}

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