function SelectOrOtherTextTestCase::testOtherSelected in Select (or other) 7.3
Same name and namespace in other branches
- 7.2 tests/select_or_other_text.test \SelectOrOtherTextTestCase::testOtherSelected()
Tests select or other with the other value selected.
File
- tests/
select_or_other_text.test, line 42
Class
- SelectOrOtherTextTestCase
- Tests the select or other text field based functionality
Code
function testOtherSelected() {
foreach ($this->fields as $field_name => $field) {
$other_value = $this
->randomName();
$this
->setFieldValue($field_name, 'select_or_other', $other_value);
$this
->assertRaw($other_value);
$this
->assertNoRaw('select_or_other');
}
}