function FFCTestCase::ffcCheckFieldTypes in Field formatter conditions 7
Check Field types.
1 call to FFCTestCase::ffcCheckFieldTypes()
- FFCTestCase::CoreTestFieldTypesLimit in tests/
ffc.test - Tests whether a condition is limited to field type or not. It uses the test_condition that is defined in the ffc_test.module that only applies to the image field type.
File
- tests/
ffc.test, line 80 - Test file for Field formatter conditions.
Class
- FFCTestCase
- Group UI tests.
Code
function ffcCheckFieldTypes($element_value, $available, $url = 'admin/structure/types/manage/article/display') {
$this
->drupalPost($url, array(), $element_value);
$this
->assertRaw('hide_not_empty');
$this
->assertRaw('hide_on_role');
$this
->assertRaw('hide_on_pages');
if ($available) {
$this
->assertRaw('test_condition');
}
else {
$this
->assertNoRaw('test_condition');
}
}