You are here

protected function EmbeddedScheduledUpdateTypeTestBase::submitIEFForm in Scheduled Updates 8

Submit a IEF Form with Ajax.

Parameters

string $label:

string $drupal_selector:

array $edit:

1 call to EmbeddedScheduledUpdateTypeTestBase::submitIEFForm()
EmbeddedScheduledUpdateTypeTestBase::createNodeWithUpdate in tests/src/FunctionalJavascript/EmbeddedScheduledUpdateTypeTestBase.php

File

tests/src/FunctionalJavascript/EmbeddedScheduledUpdateTypeTestBase.php, line 193
Contains \Drupal\Tests\scheduled_updates\EmbeddedScheduledUpdateTypeTestBase.

Class

EmbeddedScheduledUpdateTypeTestBase
Base test class for embedded update types.

Namespace

Drupal\Tests\scheduled_updates\FunctionalJavascript

Code

protected function submitIEFForm($label, $drupal_selector, $edit = []) {
  $name = $this
    ->getButtonName("//input[@type=\"submit\" and @value=\"{$label}\" and @data-drupal-selector=\"{$drupal_selector}\"]");

  // Was drupalPostAjaxForm:
  $this
    ->drupalPostForm(NULL, $edit, $name);
}