function HtmxUtilitiesTest::testRemoveAttribute

Test ::removeAttribute.

File

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

Class

HtmxUtilitiesTest
Test all Htmx public utility methods.

Namespace

Drupal\Tests\Core\Htmx

Code

public function testRemoveAttribute() : void {
  $this->htmx
    ->removeAttribute('apple');
  $this->assertFalse($this->htmx
    ->hasAttribute('apple'));
}

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