function AttributeHelperTest::testMergeCollections
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php \Drupal\Tests\Core\Template\AttributeHelperTest::testMergeCollections()
- 8.9.x core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php \Drupal\Tests\Core\Template\AttributeHelperTest::testMergeCollections()
- 11.x 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 66
Class
- AttributeHelperTest
- @coversDefaultClass \Drupal\Core\Template\AttributeHelper @group Template
Namespace
Drupal\Tests\Core\TemplateCode
public function testMergeCollections($original, $merge, $expected) : void {
$this->assertEquals($expected, AttributeHelper::mergeCollections($original, $merge));
$this->assertEquals(new Attribute($expected), AttributeHelper::mergeCollections(new Attribute($original), $merge));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.