public function ElementTest::testSetAttributes in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Render/ElementTest.php \Drupal\Tests\Core\Render\ElementTest::testSetAttributes()
- 10 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 163
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);
}