You are here

class DatabaseStorageTest in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/service_container/Tests/KeyValue/DatabaseStorageTest.php \Drupal\service_container\Tests\KeyValue\DatabaseStorageTest

Tests the key-value database storage.

@group KeyValueStore

Hierarchy

Expanded class hierarchy of DatabaseStorageTest

File

lib/Drupal/service_container/Tests/KeyValue/DatabaseStorageTest.php, line 15
Contains Drupal\system\Tests\KeyValueStore\DatabaseStorageTest.

Namespace

Drupal\service_container\Tests\KeyValue
View source
class DatabaseStorageTest extends StorageTestBase {

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return array(
      'name' => 'KeyValue Database',
      'description' => 'Tests the key-value database storage.',
      'group' => 'service_container',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DatabaseStorageTest::getInfo public static function
ServiceContainerIntegrationTestBase::$container protected property The dependency injection container usable in the test.
StorageTestBase::$collections protected property An array of data collection labels.
StorageTestBase::$factory protected property Whether we are using an expirable key/value store.
StorageTestBase::$objects protected property An array of random stdClass objects.
StorageTestBase::$profile protected property The profile to install as a basis for testing. Overrides ServiceContainerIntegrationTestBase::$profile
StorageTestBase::assertIdenticalObject protected function Checks to see if two objects are identical.
StorageTestBase::cleanUp protected function
StorageTestBase::createStorage protected function Creates storage objects for each collection defined for this class.
StorageTestBase::setUp protected function Overrides ServiceContainerIntegrationTestBase::setUp 2
StorageTestBase::testKeyValueStore public function 1
StorageTestBase::_testCRUD public function Tests CRUD operations.
StorageTestBase::_testNonExistingKeys public function Tests expected behavior for non-existing keys.
StorageTestBase::_testRename public function Tests the rename operation.
StorageTestBase::_testSetIfNotExists public function Tests the setIfNotExists() method.