File
- drupal/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php, line 58
- Definition of Drupal\Tests\Core\Cache\BackendChainImplementationUnitTest.
Class
- BackendChainImplementationUnitTest
- Tests implementation-specific functionality of the BackendChain backend.
Namespace
Drupal\Tests\Core\Cache
Code
public function setUp() {
parent::setUp();
$this->firstBackend = new MemoryBackend('foo');
$this->secondBackend = new MemoryBackend('bar');
$this->thirdBackend = new MemoryBackend('baz');
$this->firstBackend
->set('t123', 1231);
$this->secondBackend
->set('t123', 1232);
$this->thirdBackend
->set('t123', 1233);
$this->secondBackend
->set('t23', 232);
$this->thirdBackend
->set('t23', 233);
$this->thirdBackend
->set('t3', 33);
$this->chain = new BackendChain('foobarbaz');
$this->chain
->appendBackend($this->firstBackend)
->appendBackend($this->secondBackend)
->appendBackend($this->thirdBackend);
}