function RenderElementTest::testSetAttributes
@covers ::setAttributes
@dataProvider providerTestSetAttributes
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ Element/ RenderElementTest.php, line 119
Class
- RenderElementTest
- @coversDefaultClass \Drupal\Core\Render\Element\RenderElementBase @group Render
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.