You are here

public function AttributeTest::testAttributeValues in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Template/AttributeTest.php \Drupal\Tests\Core\Template\AttributeTest::testAttributeValues()
  2. 9 core/tests/Drupal/Tests/Core/Template/AttributeTest.php \Drupal\Tests\Core\Template\AttributeTest::testAttributeValues()

@covers ::createAttributeValue @dataProvider providerTestAttributeValues

File

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

Class

AttributeTest
@coversDefaultClass \Drupal\Core\Template\Attribute @group Template

Namespace

Drupal\Tests\Core\Template

Code

public function testAttributeValues(array $attributes, $expected) {
  $this
    ->assertEquals($expected, (new Attribute($attributes))
    ->__toString());
}