diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc index bedfcbd..b084cb6 100644 --- a/plugins/FeedsNodeProcessor.inc +++ b/plugins/FeedsNodeProcessor.inc @@ -1,15 +1,15 @@ clean($state); $info = $this->entityInfo(); $tokens = array( @@ -352,6 +353,7 @@ abstract class FeedsProcessor extends FeedsPlugin { * @param FeedsSource $source * Source information about this import. * @param FeedsState $state + * The FeedsState object for the given stage. */ protected function initEntitiesToBeRemoved(FeedsSource $source, FeedsState $state) { $state->removeList = array(); @@ -383,11 +385,12 @@ abstract class FeedsProcessor extends FeedsPlugin { } /** - * Deletes entities which were not found on process. + * Deletes entities which were not found during processing. * * @todo batch delete? * * @param FeedsState $state + * The FeedsState object for the given stage. */ protected function clean(FeedsState $state) { // We clean only if needed. diff --git a/tests/feeds_processor_entity.test b/tests/feeds_processor_entity.test index ffb012c..87738c8 100644 --- a/tests/feeds_processor_entity.test +++ b/tests/feeds_processor_entity.test @@ -73,7 +73,7 @@ class FeedsEntityProcessorTest extends FeedsWebTestCase { $this->assertText('Deleted 10 test entity'); $this->assertEqual(0, db_query("SELECT COUNT(*) FROM {entity_test}")->fetchField()); - // Import again, to reset node counts + // Import again, to reset entity counts. $this->importURL('syndication', $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'feeds') . '/tests/feeds/developmentseed.rss2'); $this->assertText('Created 10 test entity'); $this->assertEqual(10, db_query("SELECT COUNT(*) FROM {entity_test}")->fetchField()); diff --git a/tests/feeds_processor_node.test b/tests/feeds_processor_node.test index 53607be..ff9e421 100644 --- a/tests/feeds_processor_node.test +++ b/tests/feeds_processor_node.test @@ -305,7 +305,7 @@ class FeedsRSStoNodesTest extends FeedsWebTestCase { $this->assertText('Deleted 10 nodes'); $this->assertFeedItemCount(0); - // Import again, to reset node counts + // Import again, to reset node counts. $this->importURL('syndication_standalone', $feed_url); $this->assertText('Created 10 nodes'); $this->assertFeedItemCount(10);