function HtmxUtilitiesTest::testRemoveHeader
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Htmx/HtmxUtilitiesTest.php \Drupal\Tests\Core\Htmx\HtmxUtilitiesTest::testRemoveHeader()
Test ::removeHeader.
File
-
core/
tests/ Drupal/ Tests/ Core/ Htmx/ HtmxUtilitiesTest.php, line 59
Class
- HtmxUtilitiesTest
- Test all Htmx public utility methods.
Namespace
Drupal\Tests\Core\HtmxCode
public function testRemoveHeader() : void {
$this->htmx
->removeHeader('pear');
$this->assertFalse($this->htmx
->hasHeader('pear'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.