You are here

public function MultiformTestCase::testFieldsAreExist in Multiple forms 7.2

Same name and namespace in other branches
  1. 7 tests/multiform.test \MultiformTestCase::testFieldsAreExist()

Check the merged fields exist.

File

tests/multiform.test, line 61
@author Kálmán Hosszu - http://drupal.org/user/267481

Class

MultiformTestCase
@file

Code

public function testFieldsAreExist() {

  // Go to the form page.
  $this
    ->drupalGet('multiform-test/2');

  // Check textfields.
  $this
    ->assertFieldByName('multiform[multiform_test2_1][required_text_1]');
  $this
    ->assertFieldByName('multiform[multiform_test2_2][required_text_2]');

  // Check button.
  $this
    ->assertFieldByName('multiform[multiform_submits_form][op]', 'save');
}