function AttributeHelperTest::testMergeCollections
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php \Drupal\Tests\Core\Template\AttributeHelperTest::testMergeCollections()
- 10 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 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));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.