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 { ...@@ -125,7 +125,11 @@ class FeedsMapperTestCase extends FeedsWebTestCase {
// (Default) Configure the field. // (Default) Configure the field.
$edit = isset($options['settings']) ? $options['settings'] : array(); $edit = isset($options['settings']) ? $options['settings'] : array();
$this->drupalPost(NULL, $edit, 'Save field settings'); $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; return $typename;
......
...@@ -32,27 +32,27 @@ class FeedsMapperLinkTestCase extends FeedsMapperTestCase { ...@@ -32,27 +32,27 @@ class FeedsMapperLinkTestCase extends FeedsMapperTestCase {
$typename = $this->createContentType(array(), array( $typename = $this->createContentType(array(), array(
'alpha' => array( 'alpha' => array(
'type' => 'link_field', 'type' => 'link_field',
'settings' => array( 'instance_settings' => array(
'field[settings][title]' => 'required', 'instance[settings][title]' => 'required',
), ),
), ),
'beta' => array( 'beta' => array(
'type' => 'link_field', 'type' => 'link_field',
'settings' => array( 'instance_settings' => array(
'field[settings][title]' => 'none', 'instance[settings][title]' => 'none',
), ),
), ),
'gamma' => array( 'gamma' => array(
'type' => 'link_field', 'type' => 'link_field',
'settings' => array( 'instance_settings' => array(
'field[settings][title]' => 'optional', 'instance[settings][title]' => 'optional',
), ),
), ),
'omega' => array( 'omega' => array(
'type' => 'link_field', 'type' => 'link_field',
'settings' => array( 'instance_settings' => array(
'field[settings][title]' => 'value', 'instance[settings][title]' => 'value',
'field[settings][title_value]' => $static_title, '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