diff --git a/tests/feeds.test b/tests/feeds.test index 54037a3d696693fe754a0ca47103c8a31cf511e2..168a9a062988216ee5bdc5983d6300e4c43a2785 100644 --- a/tests/feeds.test +++ b/tests/feeds.test @@ -50,8 +50,8 @@ class FeedsRSStoNodesTest extends FeedsWebTestCase { ); $this->drupalPost('admin/content/node-settings', $edit, 'Save configuration'); - // Create a feed. - $this->createFeedConfiguration('Syndication', 'syndication'); + // Create an importer configuration. + $this->createImporterConfiguration('Syndication', 'syndication'); $this->addMappings('syndication', array( array( @@ -262,8 +262,8 @@ class FeedsRSStoNodesTest extends FeedsWebTestCase { // Remove all items again so that next test can check for them. $this->drupalPost('node/'. $nid .'/delete-items', array(), 'Delete'); - // Create a feed, not attached to content type. - $this->createFeedConfiguration('Syndication standalone', 'syndication_standalone'); + // Create an importer, not attached to content type. + $this->createImporterConfiguration('Syndication standalone', 'syndication_standalone'); $edit = array( 'content_type' => '', ); @@ -441,8 +441,8 @@ class FeedsRSStoDataTest extends FeedsWebTestCase { */ public function test() { - // Create a feed. - $this->createFeedConfiguration('Data feed', 'rss'); + // Create an importer. + $this->createImporterConfiguration('Data feed', 'rss'); // Go to edit page and select the data processor. $edit = array( @@ -601,8 +601,8 @@ class FeedsCSVtoUsersTest extends FeedsWebTestCase { */ public function test() { - // Create a feed. - $this->createFeedConfiguration('User import', 'user_import'); + // Create an importer. + $this->createImporterConfiguration('User import', 'user_import'); // Set and configure plugins. $this->setPlugin('user_import', 'FeedsFileFetcher'); @@ -694,7 +694,7 @@ class FeedsSchedulerTestCase extends FeedsWebTestCase { ) ) ); - $this->createFeedConfiguration(); + $this->createImporterConfiguration(); $this->addMappings('syndication', array( array( @@ -891,7 +891,7 @@ class FeedsSyndicationParserTestCase extends FeedsWebTestCase { * Run tests. */ public function test() { - $this->createFeedConfiguration('Syndication', 'syndication'); + $this->createImporterConfiguration('Syndication', 'syndication'); foreach (array('FeedsSyndicationParser', 'FeedsSimplePieParser') as $parser) { $this->setPlugin('syndication', $parser); @@ -953,7 +953,7 @@ class FeedsSitemapParserTestCase extends FeedsWebTestCase { * Run tests. */ public function test() { - $this->createFeedConfiguration('Sitemap', 'sitemap'); + $this->createImporterConfiguration('Sitemap', 'sitemap'); $this->setPlugin('sitemap', 'FeedsSitemapParser'); $this->addMappings('sitemap', diff --git a/tests/feeds.test.inc b/tests/feeds.test.inc index fee90f871898f65a9fc3107c65deded6ee536ed9..9a0e5c23b0355a5e8917f0425331c7b1e601fbf9 100644 --- a/tests/feeds.test.inc +++ b/tests/feeds.test.inc @@ -75,8 +75,6 @@ class FeedsWebTestCase extends DrupalWebTestCase { /** * Create an importer configuration. * - * @todo Rename to createImporterConfig() - * * @param $name * The natural name of the feed. * @param $id @@ -85,7 +83,7 @@ class FeedsWebTestCase extends DrupalWebTestCase { * Optional array that defines the basic settings for the feed in a format * that can be posted to the feed's basic settings form. */ - public function createFeedConfiguration($name = 'Syndication', $id = 'syndication') { + public function createImporterConfiguration($name = 'Syndication', $id = 'syndication') { // Create new feed configuration. $this->drupalGet('admin/build/feeds'); $this->clickLink('New importer'); @@ -145,8 +143,8 @@ class FeedsWebTestCase extends DrupalWebTestCase { * * create [type] content * * use feeds * - * Assumes that page content type has been configured with createFeedConfiguration() - * as a feed content type. + * Assumes that page content type has been configured with + * createImporterConfiguration() as a feed content type. * * @return * The node id of the node created. diff --git a/tests/feeds_mapper_content.test b/tests/feeds_mapper_content.test index 022e0ffafe6aabeeccae24f1fcbddcdcffa6cbe1..1a29fec189f136dc897e43a244109689a787eb56 100644 --- a/tests/feeds_mapper_content.test +++ b/tests/feeds_mapper_content.test @@ -53,7 +53,7 @@ class FeedsMapperContentTestCase extends FeedsMapperTestCase { )); // Create and configure importer. - $this->createFeedConfiguration('Content CSV', 'csv'); + $this->createImporterConfiguration('Content CSV', 'csv'); $this->setSettings('csv', NULL, array('content_type' => '','import_period' => FEEDS_SCHEDULE_NEVER,)); $this->setPlugin('csv', 'FeedsFileFetcher'); $this->setPlugin('csv', 'FeedsCSVParser'); diff --git a/tests/feeds_mapper_date.test b/tests/feeds_mapper_date.test index 7e544b246520028c7990e924c699e0da47e4e775..d24a967dce8896f9776439567566316ddb0c3535 100644 --- a/tests/feeds_mapper_date.test +++ b/tests/feeds_mapper_date.test @@ -54,7 +54,7 @@ class FeedsMapperDateTestCase extends FeedsMapperTestCase { )); // Create and configure importer. - $this->createFeedConfiguration('Date RSS', 'daterss'); + $this->createImporterConfiguration('Date RSS', 'daterss'); $this->setSettings('daterss', NULL, array('content_type' => '', 'import_period' => FEEDS_SCHEDULE_NEVER,)); $this->setPlugin('daterss', 'FeedsFileFetcher'); $this->setPlugin('daterss', 'FeedsSyndicationParser'); diff --git a/tests/feeds_mapper_filefield.test b/tests/feeds_mapper_filefield.test index 09115ff344d8afa5adf96748bba2c42be7148d1b..fc463d6476bedcb1611118e69127877b6c841a51 100644 --- a/tests/feeds_mapper_filefield.test +++ b/tests/feeds_mapper_filefield.test @@ -59,8 +59,8 @@ class FeedsMapperFileFieldTestCase extends FeedsMapperTestCase { ), )); - //Create importer configuration - $this->createFeedConfiguration(); //Create a default importer configuration + // Create importer configuration. + $this->createImporterConfiguration(); //Create a default importer configuration $this->setPlugin('syndication', 'FeedsSimplePieParser'); $this->setSettings('syndication', 'FeedsNodeProcessor', array('content_type' => $typename)); //Processor settings $this->addMappings('syndication', array( diff --git a/tests/feeds_mapper_link.test b/tests/feeds_mapper_link.test index 3a6fd312f0b67d670c617c733a06d6887d5c248c..df816f81ea48b2e1049225f3de5b98390f8cc6a5 100644 --- a/tests/feeds_mapper_link.test +++ b/tests/feeds_mapper_link.test @@ -80,8 +80,8 @@ class FeedsMapperLinkTestCase extends FeedsMapperTestCase { ), )); - //Create importer configuration - $this->createFeedConfiguration(); //Create a default importer configuration + // Create importer configuration. + $this->createImporterConfiguration(); //Create a default importer configuration $this->setSettings('syndication', 'FeedsNodeProcessor', array('content_type' => $typename)); //Processor settings $this->addMappings('syndication', array( array( diff --git a/tests/feeds_mapper_locale.test b/tests/feeds_mapper_locale.test index aa02924376ea29f6df5489a121eae7c0e8ea020d..c4986b750c6f3eadbc3f7845f318dc6b61c609c7 100644 --- a/tests/feeds_mapper_locale.test +++ b/tests/feeds_mapper_locale.test @@ -53,7 +53,7 @@ class FeedsMapperLocaleTestCase extends FeedsMapperTestCase { } // Create an importer configuration with basic mapping. - $this->createFeedConfiguration('Syndication', 'syndication'); + $this->createImporterConfiguration('Syndication', 'syndication'); $this->addMappings('syndication', array( array( diff --git a/tests/feeds_mapper_og.test b/tests/feeds_mapper_og.test index 4eeac37b013026d276b892faa0528d62ba8fe617..3dd4e52689d0c5c4d079af5e5574e248550e343d 100644 --- a/tests/feeds_mapper_og.test +++ b/tests/feeds_mapper_og.test @@ -54,7 +54,7 @@ class FeedsMapperOGTestCase extends FeedsMapperTestCase { } // Create an importer configuration with basic mapping. - $this->createFeedConfiguration('Syndication', 'syndication'); + $this->createImporterConfiguration('Syndication', 'syndication'); $this->addMappings('syndication', array( array( diff --git a/tests/feeds_mapper_profile.test b/tests/feeds_mapper_profile.test index 05842874b9d446108e18171d9028e75f28c01a06..1d7d42d040f0904d419ada2a88466f157d11c713 100644 --- a/tests/feeds_mapper_profile.test +++ b/tests/feeds_mapper_profile.test @@ -58,8 +58,8 @@ class FeedsMapperProfileTestCase extends FeedsMapperTestCase { ); $name = $this->drupalPost('admin/user/profile/add/selection', $edit, t('Save field')); - // Create a feed. - $this->createFeedConfiguration('Profile import', 'profile_import'); + // Create an importer. + $this->createImporterConfiguration('Profile import', 'profile_import'); // Set and configure plugins. $this->setPlugin('profile_import', 'FeedsFileFetcher'); diff --git a/tests/feeds_mapper_taxonomy.test b/tests/feeds_mapper_taxonomy.test index 0e44826173dd7c06fad0ae9199181975cc62860b..b9725e983c30ce44ee0540444e9481a9b45c3aef 100644 --- a/tests/feeds_mapper_taxonomy.test +++ b/tests/feeds_mapper_taxonomy.test @@ -48,7 +48,7 @@ class FeedsMapperTaxonomyTestCase extends FeedsMapperTestCase { ); $this->drupalPost('admin/content/taxonomy/add/vocabulary', $edit, 'Save'); // Create an importer configuration with basic mapping. - $this->createFeedConfiguration('Syndication', 'syndication'); + $this->createImporterConfiguration('Syndication', 'syndication'); $this->addMappings('syndication', array( array(