function RecipeConfigStorageWrapperTest::testSingleStorage
Same name in other branches
- 11.x core/tests/Drupal/Tests/Core/Recipe/RecipeConfigStorageWrapperTest.php \Drupal\Tests\Core\Recipe\RecipeConfigStorageWrapperTest::testSingleStorage()
Validate that a single storage returns exactly the same instance.
File
-
core/
tests/ Drupal/ Tests/ Core/ Recipe/ RecipeConfigStorageWrapperTest.php, line 32
Class
- RecipeConfigStorageWrapperTest
- @coversDefaultClass \Drupal\Core\Recipe\RecipeConfigStorageWrapper @group Recipe
Namespace
Drupal\Tests\Core\RecipeCode
public function testSingleStorage() : void {
$storages = [
new NullStorage(),
];
$this->assertSame($storages[0], RecipeConfigStorageWrapper::createStorageFromArray($storages));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.