public function DatabaseRawBackendGeneralTestCaseTrait::setUp in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Tests/Cache/DatabaseRawBackendGeneralTestCaseTrait.php \Drupal\supercache\Tests\Cache\DatabaseRawBackendGeneralTestCaseTrait::setUp()
File
- src/
Tests/ Cache/ DatabaseRawBackendGeneralTestCaseTrait.php, line 18
Class
Namespace
Drupal\supercache\Tests\CacheCode
public function setUp() {
KernelTestBase::setUp();
$connection = \Drupal\Core\Database\Database::getConnection();
$factory = new DatabaseRawBackendFactory($connection);
// The aim of this setup is to get two functional backend instances.
$this->backend = $factory
->get('test_binary');
$this->backend2 = $factory
->get('test_binary_alt');
}