class ExtensionInstallStorageTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php \Drupal\Tests\Core\Config\ExtensionInstallStorageTest
- 10 core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php \Drupal\Tests\Core\Config\ExtensionInstallStorageTest
- 8.9.x core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php \Drupal\Tests\Core\Config\ExtensionInstallStorageTest
@coversDefaultClass \Drupal\Core\Config\ExtensionInstallStorage
@group Config
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Core\Config\ExtensionInstallStorageTest extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of ExtensionInstallStorageTest
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ ExtensionInstallStorageTest.php, line 15
Namespace
Drupal\Tests\Core\ConfigView source
class ExtensionInstallStorageTest extends UnitTestCase {
/**
* @covers ::createCollection
*/
public function testCreateCollection() {
$memory = new MemoryStorage();
$include_profile = FALSE;
$profile = $this->randomMachineName();
$collectionName = $this->randomMachineName();
// Set up the storage.
$storage = new ExtensionInstallStorage($memory, InstallStorage::CONFIG_INSTALL_DIRECTORY, StorageInterface::DEFAULT_COLLECTION, $include_profile, $profile);
// Create a collection.
$collection = $storage->createCollection($collectionName);
static::assertEquals($collectionName, $collection->getCollectionName());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.