function HtmxAttributesTest::testInvalidMethod
File
-
core/
tests/ Drupal/ Tests/ Core/ Htmx/ HtmxAttributesTest.php, line 311
Class
- HtmxAttributesTest
- Test all attribute-related Htmx public methods.
Namespace
Drupal\Tests\Core\HtmxCode
public function testInvalidMethod() : void {
// Test an invalid string.
$this->expectException(\ValueError::class);
$this->htmx
->method('invalid');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.