You are here

public function DatabaseStorageSortedTestBase::setUp in Key-value Extensions 8

Overrides KernelTestBase::setUp

2 calls to DatabaseStorageSortedTestBase::setUp()
DatabaseStorageListTest::setUp in src/Tests/DatabaseStorageListTest.php
DatabaseStorageSortedSetTest::setUp in src/Tests/DatabaseStorageSortedSetTest.php
2 methods override DatabaseStorageSortedTestBase::setUp()
DatabaseStorageListTest::setUp in src/Tests/DatabaseStorageListTest.php
DatabaseStorageSortedSetTest::setUp in src/Tests/DatabaseStorageSortedSetTest.php

File

src/Tests/DatabaseStorageSortedTestBase.php, line 31

Class

DatabaseStorageSortedTestBase

Namespace

Drupal\key_value\Tests

Code

public function setUp() {
  parent::setUp();
  $this
    ->installSchema('key_value', [
    'key_value_sorted',
  ]);
  $this->collection = $this
    ->randomMachineName();
  $this->serializer = \Drupal::service('serialization.phpserialize');
  $this->connection = \Drupal::service('database');
}