public function ElementTest::testSetAttributes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Render/ElementTest.php \Drupal\Tests\Core\Render\ElementTest::testSetAttributes()
Tests the setAttributes() method.
@dataProvider providerTestSetAttributes
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ ElementTest.php, line 168 - Contains \Drupal\Tests\Core\Render\ElementTest.
Class
- ElementTest
- @coversDefaultClass \Drupal\Core\Render\Element @group Render
Namespace
Drupal\Tests\Core\RenderCode
public function testSetAttributes($element, $map, $expected_element) {
Element::setAttributes($element, $map);
$this
->assertSame($expected_element, $element);
}