function 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[[api-linebreak]] @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.