public function WebformHandlerInvokeAlterHookTest::testWebformHandlerInvokeAlterHook in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Functional/Handler/WebformHandlerInvokeAlterHookTest.php \Drupal\Tests\webform\Functional\Handler\WebformHandlerInvokeAlterHookTest::testWebformHandlerInvokeAlterHook()
Tests webform handler invoke alter hook.
File
- tests/
src/ Functional/ Handler/ WebformHandlerInvokeAlterHookTest.php, line 24
Class
- WebformHandlerInvokeAlterHookTest
- Tests for the webform handler invoke alter hook.
Namespace
Drupal\Tests\webform\Functional\HandlerCode
public function testWebformHandlerInvokeAlterHook() {
// Check invoke alter hooks.
$this
->drupalGet('/webform/contact');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::pre_create"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_pre_create_alter() for "contact:email_confirmation"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::pre_create"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_pre_create_alter() for "contact:email_notification"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::alter_elements"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::alter_elements"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::post_create"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::post_create"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::override_settings"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::override_settings"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::prepare_form"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::prepare_form"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::access_element"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::access_element"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::alter_element"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::alter_element"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_confirmation::alter_form"');
$this
->assertRaw('Invoking hook_webform_handler_invoke_alter() for "contact:email_notification::alter_form"');
}