From 672e9afcaad30d17eb21969ca7a49f53089d231e Mon Sep 17 00:00:00 2001 From: Chris Leppanen <chris.leppanen@gmail.com> Date: Thu, 6 Sep 2012 15:06:15 -0700 Subject: [PATCH] Don't set unique flag for things that don't have it. --- tests/feeds_mapper_taxonomy.test | 1 - tests/feeds_processor_node.test | 12 +++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/feeds_mapper_taxonomy.test b/tests/feeds_mapper_taxonomy.test index 74533a2e..7628597d 100644 --- a/tests/feeds_mapper_taxonomy.test +++ b/tests/feeds_mapper_taxonomy.test @@ -127,7 +127,6 @@ class FeedsMapperTaxonomyTestCase extends FeedsMapperTestCase { array( 'source' => 'parent:taxonomy:tags', 'target' => 'field_tags', - 'unique' => FALSE, ), ) ); diff --git a/tests/feeds_processor_node.test b/tests/feeds_processor_node.test index ee2cc59a..7e1b8d69 100644 --- a/tests/feeds_processor_node.test +++ b/tests/feeds_processor_node.test @@ -41,20 +41,20 @@ class FeedsRSStoNodesTest extends FeedsWebTestCase { 'target' => 'title', 'unique' => FALSE, ), - 2 => array( + 1 => array( 'source' => 'description', 'target' => 'body', ), - 3 => array( + 2 => array( 'source' => 'timestamp', 'target' => 'created', ), - 4 => array( + 3 => array( 'source' => 'url', 'target' => 'url', 'unique' => TRUE, ), - 5 => array( + 4 => array( 'source' => 'guid', 'target' => 'guid', 'unique' => TRUE, @@ -189,7 +189,7 @@ class FeedsRSStoNodesTest extends FeedsWebTestCase { // should now be assigned to feed node author. $this->addMappings('syndication', array( - 6 => array( + 5 => array( 'source' => 'parent:uid', 'target' => 'uid', ), @@ -234,12 +234,10 @@ class FeedsRSStoNodesTest extends FeedsWebTestCase { 1 => array( 'source' => 'description', 'target' => 'body', - 'unique' => FALSE, ), 2 => array( 'source' => 'timestamp', 'target' => 'created', - 'unique' => FALSE, ), 3 => array( 'source' => 'url', -- GitLab