function AttributeTest::testAttributeValues

Tests attribute values.

@legacy-covers ::createAttributeValue

Attributes

#[DataProvider('providerTestAttributeValues')]

File

core/tests/Drupal/Tests/Core/Template/AttributeTest.php, line 379

Class

AttributeTest
Tests Drupal\Core\Template\Attribute.

Namespace

Drupal\Tests\Core\Template

Code

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.