public function AttributeHelperTest::testMergeCollections in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php \Drupal\Tests\Core\Template\AttributeHelperTest::testMergeCollections()
@covers ::mergeCollections @dataProvider providerTestMergeCollections
File
- core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeHelperTest.php, line 64
Class
- AttributeHelperTest
- @coversDefaultClass \Drupal\Core\Template\AttributeHelper @group Template
Namespace
Drupal\Tests\Core\TemplateCode
public function testMergeCollections($original, $merge, $expected) {
$this
->assertEquals($expected, AttributeHelper::mergeCollections($original, $merge));
$this
->assertEquals(new Attribute($expected), AttributeHelper::mergeCollections(new Attribute($original), $merge));
}