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