function RenderElementTest::testSetAttributes
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Render/Element/RenderElementTest.php \Drupal\Tests\Core\Render\Element\RenderElementTest::testSetAttributes()
Tests set attributes.
Attributes
#[DataProvider('providerTestSetAttributes')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ Element/ RenderElementTest.php, line 135
Class
Namespace
Drupal\Tests\Core\Render\ElementCode
public function testSetAttributes(array $element, array $class, array $expected) : void {
RenderElementBase::setAttributes($element, $class);
$this->assertSame($expected, $element);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.