function AttributesTest::testDrupalAttributes

Tests casting an Attribute object to a string.

@dataProvider providerTestAttributeData

See also

\Drupal\Core\Template\Attribute::__toString()

File

drupal/core/tests/Drupal/Tests/Core/Common/AttributesTest.php, line 62
Contains \Drupal\Tests\Core\Common\AttributesTest.

Class

AttributesTest
Tests the Drupal\Core\Template\Attribute functionality.

Namespace

Drupal\Tests\Core\Common

Code

function testDrupalAttributes($attributes, $expected, $message) {
  $this
    ->assertSame($expected, (string) new Attribute($attributes), $message);
}