You are here

public function MultiformTestCase::testFieldsAreExist in Multiple forms 7

Same name and namespace in other branches
  1. 7.2 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_0][required_text_1]');
  $this
    ->assertFieldByName('multiform[multiform_test2_2_1][required_text_2]');

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