function FeedsRSStoNodesTest::assertFeedItemCount in Feeds 6
Same name and namespace in other branches
- 7.2 tests/feeds_processor_node.test \FeedsRSStoNodesTest::assertFeedItemCount()
Check that the total number of nodes in the feeds_node_item table is correct.
1 call to FeedsRSStoNodesTest::assertFeedItemCount()
- FeedsRSStoNodesTest::testOddFeedSchemes in tests/
feeds_processor_node.test - Test using non-normal URLs like feed:// and webcal://.
File
- tests/
feeds_processor_node.test, line 398 - Tests for plugins/FeedsNodeProcessor.inc.
Class
- FeedsRSStoNodesTest
- Test aggregating a feed as node items.
Code
function assertFeedItemCount($num) {
$count = db_result(db_query("SELECT COUNT(*) FROM {feeds_node_item}"));
$this
->assertEqual($count, $num, 'Accurate number of items in database.');
}