function HtmxUtilitiesTest::testGetAttributes

Test ::getAttributes.

File

core/tests/Drupal/Tests/Core/Htmx/HtmxUtilitiesTest.php, line 75

Class

HtmxUtilitiesTest
Test all Htmx public utility methods.

Namespace

Drupal\Tests\Core\Htmx

Code

public function testGetAttributes() : void {
  $attributes = $this->htmx
    ->getAttributes();
  $this->assertEquals(2, count($attributes->storage()));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.