You are here

public function DatabaseRawBackendGeneralTestCaseTrait::setUp in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Tests/Cache/DatabaseRawBackendGeneralTestCaseTrait.php \Drupal\supercache\Tests\Cache\DatabaseRawBackendGeneralTestCaseTrait::setUp()

File

src/Tests/Cache/DatabaseRawBackendGeneralTestCaseTrait.php, line 18

Class

DatabaseRawBackendGeneralTestCaseTrait

Namespace

Drupal\supercache\Tests\Cache

Code

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');
}