You are here

protected function GenericCacheBackendUnitTestBase::setUp in Zircon Profile 8

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

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php, line 109
Contains \Drupal\system\Tests\Cache\GenericCacheBackendUnitTestBase.

Class

GenericCacheBackendUnitTestBase
Tests any cache backend.

Namespace

Drupal\system\Tests\Cache

Code

protected function setUp() {
  $this->cachebackends = array();
  $this->defaultValue = $this
    ->randomMachineName(10);
  parent::setUp();
  $this
    ->setUpCacheBackend();
}