class DatabaseStorageTest in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/service_container/Tests/KeyValue/DatabaseStorageTest.php \Drupal\service_container\Tests\KeyValue\DatabaseStorageTest
Tests the key-value database storage.
@group KeyValueStore
Hierarchy
- class \Drupal\service_container\Tests\ServiceContainerIntegrationTestBase extends \Drupal\service_container\Tests\DrupalWebTestCase
- class \Drupal\service_container\Tests\KeyValue\StorageTestBase
- class \Drupal\service_container\Tests\KeyValue\DatabaseStorageTest
- class \Drupal\service_container\Tests\KeyValue\StorageTestBase
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\KeyValueView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DatabaseStorageTest:: |
public static | function | ||
ServiceContainerIntegrationTestBase:: |
protected | property | The dependency injection container usable in the test. | |
StorageTestBase:: |
protected | property | An array of data collection labels. | |
StorageTestBase:: |
protected | property | Whether we are using an expirable key/value store. | |
StorageTestBase:: |
protected | property | An array of random stdClass objects. | |
StorageTestBase:: |
protected | property |
The profile to install as a basis for testing. Overrides ServiceContainerIntegrationTestBase:: |
|
StorageTestBase:: |
protected | function | Checks to see if two objects are identical. | |
StorageTestBase:: |
protected | function | ||
StorageTestBase:: |
protected | function | Creates storage objects for each collection defined for this class. | |
StorageTestBase:: |
protected | function |
Overrides ServiceContainerIntegrationTestBase:: |
2 |
StorageTestBase:: |
public | function | 1 | |
StorageTestBase:: |
public | function | Tests CRUD operations. | |
StorageTestBase:: |
public | function | Tests expected behavior for non-existing keys. | |
StorageTestBase:: |
public | function | Tests the rename operation. | |
StorageTestBase:: |
public | function | Tests the setIfNotExists() method. |