function AttributeTest::testAttributeValues
Tests attribute values.
@legacy-covers ::createAttributeValue
Attributes
#[DataProvider('providerTestAttributeValues')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php, line 379
Class
Namespace
Drupal\Tests\Core\TemplateCode
public function testAttributeValues(array $attributes, $expected) : void {
$this->assertEquals($expected, (new Attribute($attributes))->__toString());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.