function HtmxUtilitiesTest::testHasAttribute
Test ::hasAttribute.
File
-
core/
tests/ Drupal/ Tests/ Core/ Htmx/ HtmxUtilitiesTest.php, line 50
Class
- HtmxUtilitiesTest
- Test all Htmx public utility methods.
Namespace
Drupal\Tests\Core\HtmxCode
public function testHasAttribute() : void {
$this->assertTrue($this->htmx
->hasAttribute('apple'));
$this->assertTrue($this->htmx
->hasAttribute('banana'));
$this->assertFalse($this->htmx
->hasAttribute('orange'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.