trait DatabaseRawBackendGeneralTestCaseTrait in Supercache 2.0.x
Same name and namespace in other branches
- 8 src/Tests/Cache/DatabaseRawBackendGeneralTestCaseTrait.php \Drupal\supercache\Tests\Cache\DatabaseRawBackendGeneralTestCaseTrait
Hierarchy
- trait \Drupal\supercache\Tests\Cache\DatabaseRawBackendGeneralTestCaseTrait
File
- src/
Tests/ Cache/ DatabaseRawBackendGeneralTestCaseTrait.php, line 16
Namespace
Drupal\supercache\Tests\CacheView source
trait DatabaseRawBackendGeneralTestCaseTrait {
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');
}
public function tearDown() {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DatabaseRawBackendGeneralTestCaseTrait:: |
public | function | ||
DatabaseRawBackendGeneralTestCaseTrait:: |
public | function |