function RecipeConfigStorageWrapperTest::testListAll
Test that list all merges values and makes them unique.
File
-
core/
tests/ Drupal/ Tests/ Core/ Recipe/ RecipeConfigStorageWrapperTest.php, line 229
Class
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.