function FileStorageTest::setUp

Same name in this branch

Overrides \Drupal\simpletest\UnitTestBase::setUp()

Overrides PhpStorageTestBase::setUp

File

drupal/core/modules/system/lib/Drupal/system/Tests/PhpStorage/FileStorageTest.php, line 23
Definition of Drupal\system\Tests\PhpStorage\FileStorageTest.

Class

FileStorageTest
Tests the simple file storage.

Namespace

Drupal\system\Tests\PhpStorage

Code

function setUp() {
  global $conf;
  parent::setUp();
  $conf['php_storage']['simpletest'] = array(
    'class' => 'Drupal\\Component\\PhpStorage\\FileStorage',
    'directory' => DRUPAL_ROOT . '/' . variable_get('file_public_path', conf_path() . '/files') . '/php',
  );
  $conf['php_storage']['readonly'] = array(
    'class' => 'Drupal\\Component\\PhpStorage\\FileReadOnlyStorage',
    'directory' => DRUPAL_ROOT . '/' . variable_get('file_public_path', conf_path() . '/files') . '/php',
    // Let this read from the bin where the other instance is writing.
    'bin' => 'simpletest',
  );
}