You are here

public function FeedsRSStoNodesTest::assertFeedItemCount in Feeds 7.2

Same name and namespace in other branches
  1. 6 tests/feeds_processor_node.test \FeedsRSStoNodesTest::assertFeedItemCount()

Check that the total number of entries in the feeds_item table is correct.

2 calls to FeedsRSStoNodesTest::assertFeedItemCount()
FeedsRSStoNodesTest::test in tests/feeds_processor_node.test
Test node creation, refreshing/deleting feeds and feed items.
FeedsRSStoNodesTest::testOddFeedSchemes in tests/feeds_processor_node.test
Test using non-normal URLs like feed:// and webcal://.

File

tests/feeds_processor_node.test, line 370
Tests for plugins/FeedsNodeProcessor.inc.

Class

FeedsRSStoNodesTest
Test aggregating a feed as node items.

Code

public function assertFeedItemCount($num) {
  $count = db_query("SELECT COUNT(*) FROM {feeds_item} WHERE entity_type = 'node'")
    ->fetchField();
  $this
    ->assertEqual($count, $num, 'Accurate number of items in database.');
}