protected function MultipleValuesWidgetTest::openMultiExistingForm in Inline Entity Form 7
Opens the existing node form on the "multi" field.
1 call to MultipleValuesWidgetTest::openMultiExistingForm()
- 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 637
Class
- MultipleValuesWidgetTest
- IEF multiple values field widget tests.
Code
protected function openMultiExistingForm() {
$this
->drupalPostAjax(NULL, array(), $this
->getButtonName('//input[@type="submit" and @value="Add existing node" and @id="edit-field-multiple-nodes-und-actions-ief-add-existing"]'));
$this
->assertResponse(200, 'Opening reference form was successful.');
$this
->assertFieldByName('field_multiple_nodes[und][form][entity_id]', NULL, 'Existing entity reference autocomplete field found.');
}