You are here

function FFCTestCase::ffcEditFormatterSettings in Field formatter conditions 7

Edit field formatter settings

10 calls to FFCTestCase::ffcEditFormatterSettings()
FFCTestCase::CoreTestHideSourcePages in tests/ffc.test
Test Hide source on specific pages on Core.
FFCTestCase::CoreTestHideSourceTargetIfEmpty in tests/ffc.test
Test Hide source if target is empty condition on Core.
FFCTestCase::CoreTestHideSourceTargetIfString in tests/ffc.test
Test Hide source when target contains a string condition on Core.
FFCTestCase::CoreTestHideSourceTargetNoString in tests/ffc.test
Test Hide source when target does not contain a string condition on Core.
FFCTestCase::CoreTestHideSourceTargetNotEmpty in tests/ffc.test
Test Hide source when target is not empty condition on Core.

... See full list

File

tests/ffc.test, line 70
Test file for Field formatter conditions.

Class

FFCTestCase
Group UI tests.

Code

function ffcEditFormatterSettings($condition, $configuration, $element_value = 'edit body', $url = 'admin/structure/types/manage/article/display') {
  $this
    ->drupalPost($url, array(), $element_value);
  $this
    ->drupalPost(NULL, $condition, t('Refresh'));
  $this
    ->drupalPost(NULL, $configuration, t('Update'));
  $this
    ->drupalPost(NULL, array(), t('Save'));
}