You are here

function SelectOrOtherTestBase::testFieldLabelVisibleOnce in Select (or other) 7.3

Make sure the field label is visible only once.

File

tests/SelectOrOtherTestBase.test, line 60
Contains SelectOrOtherTestBase.

Class

SelectOrOtherTestBase
Class SelectOrOtherTestBase Base class for select_or_other testing.

Code

function testFieldLabelVisibleOnce() {
  foreach ($this->fields as $field_name => $field) {
    $this
      ->drupalGet('node/add/' . $this
      ->getFieldContentType($field_name));
    $this
      ->assertLabelVisibleOnce($field_name, "edit-{$field_name}-und-select");
  }
}