You are here

trait DatabaseRawBackendGeneralTestCaseTrait in Supercache 2.0.x

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

Hierarchy

File

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

Namespace

Drupal\supercache\Tests\Cache
View 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