Skip to content
Snippets Groups Projects
Commit 7852af42 authored by Alex Barth's avatar Alex Barth
Browse files

Rename createFeedConfiguration() to createImporterConfiguration().

parent ce5fedb6
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
......@@ -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.
......
......@@ -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');
......
......@@ -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');
......
......@@ -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(
......
......@@ -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(
......
......@@ -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(
......
......@@ -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(
......
......@@ -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');
......
......@@ -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(
......
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