function RecipeConfigStorageWrapperTest::testSingleStorage

Same name and namespace in other branches
  1. 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[[api-linebreak]] @group Recipe

Namespace

Drupal\Tests\Core\Recipe

Code

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.