Skip to content
Snippets Groups Projects
Commit 6dfac3cd authored by twistor's avatar twistor Committed by Eric Mckenna
Browse files

Issue #1191330 by twistor: Added Allow feeds_mapper().test to set field

instance settings.
parent 494dd55b
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,11 @@ class FeedsMapperTestCase extends FeedsWebTestCase {
// (Default) Configure the field.
$edit = isset($options['settings']) ? $options['settings'] : array();
$this->drupalPost(NULL, $edit, 'Save field settings');
$this->assertText('Updated field ' . $label);
$this->assertText('Updated field ' . $label . ' field settings.');
$edit = isset($options['instance_settings']) ? $options['instance_settings'] : array();
$this->drupalPost(NULL, $edit, 'Save settings');
$this->assertText('Saved ' . $label . ' configuration.');
}
return $typename;
......
......@@ -32,27 +32,27 @@ class FeedsMapperLinkTestCase extends FeedsMapperTestCase {
$typename = $this->createContentType(array(), array(
'alpha' => array(
'type' => 'link_field',
'settings' => array(
'field[settings][title]' => 'required',
'instance_settings' => array(
'instance[settings][title]' => 'required',
),
),
'beta' => array(
'type' => 'link_field',
'settings' => array(
'field[settings][title]' => 'none',
'instance_settings' => array(
'instance[settings][title]' => 'none',
),
),
'gamma' => array(
'type' => 'link_field',
'settings' => array(
'field[settings][title]' => 'optional',
'instance_settings' => array(
'instance[settings][title]' => 'optional',
),
),
'omega' => array(
'type' => 'link_field',
'settings' => array(
'field[settings][title]' => 'value',
'field[settings][title_value]' => $static_title,
'instance_settings' => array(
'instance[settings][title]' => 'value',
'instance[settings][title_value]' => $static_title,
),
),
));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment