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