function RecipeConfigStorageWrapperTest::testListAll
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Recipe/RecipeConfigStorageWrapperTest.php \Drupal\Tests\Core\Recipe\RecipeConfigStorageWrapperTest::testListAll()
Test that list all merges values and makes them unique.
File
-
core/
tests/ Drupal/ Tests/ Core/ Recipe/ RecipeConfigStorageWrapperTest.php, line 226
Class
- RecipeConfigStorageWrapperTest
- @coversDefaultClass \Drupal\Core\Recipe\RecipeConfigStorageWrapper @group Recipe
Namespace
Drupal\Tests\Core\RecipeCode
public function testListAll() : void {
$a = $this->createMock(StorageInterface::class);
$a->method('listAll')
->with('node.')
->willReturn([
'node.type',
]);
$b = $this->createMock(StorageInterface::class);
$b->method('listAll')
->with('node.')
->willReturn([
'node.type',
'node.id',
]);
$storage = new RecipeConfigStorageWrapper($a, $b);
$this->assertEquals([
0 => 'node.type',
2 => 'node.id',
], $storage->listAll('node.'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.