You are here

protected function MultipleValuesWidgetTest::cancelExistingMultiForm in Inline Entity Form 7

Closes the existing node form on the "multi" field.

1 call to MultipleValuesWidgetTest::cancelExistingMultiForm()
MultipleValuesWidgetTest::checkExistingValidationExpectation in tests/multiple_values_widget.test
Checks that an invalid value for an existing node will be display the expected error.

File

tests/multiple_values_widget.test, line 629

Class

MultipleValuesWidgetTest
IEF multiple values field widget tests.

Code

protected function cancelExistingMultiForm($edit) {
  $this
    ->drupalPostAjax(NULL, $edit, $this
    ->getButtonName('//div[@id="edit-field-multiple-nodes"]//input[@type="submit" and @value="Cancel"]'));
  $this
    ->assertNoFieldByName('field_multiple_nodes[und][form][entity_id]', NULL, 'Existing entity reference autocomplete field removed.');
}