class HtmxAssetLoadTestSetup
Same name and namespace in other branches
- 11.x core/tests/Drupal/TestSite/HtmxAssetLoadTestSetup.php \Drupal\TestSite\HtmxAssetLoadTestSetup
Setup file used by core/tests/Drupal/Nightwatch/Tests/htmx/htmxTest.js.
Hierarchy
- class \Drupal\TestSite\HtmxAssetLoadTestSetup implements \Drupal\TestSite\TestSetupInterface
Expanded class hierarchy of HtmxAssetLoadTestSetup
File
-
core/
tests/ Drupal/ TestSite/ HtmxAssetLoadTestSetup.php, line 12
Namespace
Drupal\TestSiteView source
class HtmxAssetLoadTestSetup implements TestSetupInterface {
/**
* {@inheritdoc}
*/
public function setup() : void {
// Install required modules.
$module_installer = \Drupal::service('module_installer');
assert($module_installer instanceof ModuleInstallerInterface);
$module_installer->install([
'test_htmx',
]);
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
|---|---|---|---|---|
| HtmxAssetLoadTestSetup::setup | public | function | Run the code to setup the test environment. | Overrides TestSetupInterface::setup |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.