drupal_set_message(t('The %view_mode mode now uses custom display settings. You might want to <a href="@url">configure them</a>.',array('%view_mode'=>$view_mode_label,'@url'=>url($path))));
// Initialize the newly customized view mode with the display settings
@@ -1620,6 +1561,7 @@ function field_ui_widget_type_form($form, &$form_state, $instance) {
'#description'=>t('The type of form element you would like to present to the user when creating this field in the %type type.',array('%type'=>$bundle_label)),
// Check that the field is displayed with the default formatter in 'rss'
// mode (uses 'default'), and hidden in 'teaser' mode (uses custom settings).
$this->assertNodeViewText($node,'rss',$output['field_test_default'],t("The field is displayed as expected in view modes that use 'default' settings."));
$this->assertNodeViewNoText($node,'teaser',$value,t("The field is hidden in view modes that use custom settings."));
// Change fomatter for 'default' mode, check that the field is displayed
$this->assertNodeViewText($node,'rss',$output['field_test_with_prepare_view'],t("The field is displayed as expected in view modes that use 'default' settings."));
// Specialize the 'rss' mode, check that the field is displayed the same.
$this->assertNodeViewText($node,'rss',$output['field_test_with_prepare_view'],t("The field is displayed as expected in newly specialized 'rss' mode."));
// Set the field to 'hidden' in the view mode, check that the field is
$this->assertNodeViewText($node,'rss',$output['field_test_with_prepare_view'],t("The field is displayed as expected when 'rss' mode is set back to 'default' settings."));