function HtmxUtilitiesTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Htmx/ HtmxUtilitiesTest.php, line 29
Class
- HtmxUtilitiesTest
- Test all Htmx public utility methods.
Namespace
Drupal\Tests\Core\HtmxCode
protected function setUp() : void {
parent::setUp();
// Set up test values.
$attributes = new Attribute([
'apple' => 'orange',
'banana' => 'grape',
]);
$headers = new HeaderBag([
'pear' => 'kiwi',
'mango' => 'peach',
]);
$this->htmx = new Htmx($attributes, $headers);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.