You are here

protected function EmbeddedScheduledUpdateTypeTest::fillFields in Scheduled Updates 8

Parameters

array $edit:

array $exclude_fields:

Throws

\Behat\Mink\Exception\ElementNotFoundException

1 call to EmbeddedScheduledUpdateTypeTest::fillFields()
EmbeddedScheduledUpdateTypeTest::createType in tests/src/FunctionalJavascript/EmbeddedScheduledUpdateTypeTest.php
Create a scheduled update type via the UI.

File

tests/src/FunctionalJavascript/EmbeddedScheduledUpdateTypeTest.php, line 114
Contains \Drupal\Tests\scheduled_updates\EmbeddedScheduledUpdateTypeTest.

Class

EmbeddedScheduledUpdateTypeTest
Test adding an Embedded Scheduled Update Type.

Namespace

Drupal\Tests\scheduled_updates\FunctionalJavascript

Code

protected function fillFields($edit, $exclude_fields) {
  $page = $this
    ->getSession()
    ->getPage();
  foreach ($edit as $field_name => $field_value) {
    if (!in_array($field_name, $exclude_fields)) {
      $page
        ->fillField($field_name, $field_value);
      $this
        ->assertSession()
        ->assertWaitOnAjaxRequest();
    }
  }
}