--- tests/feeds.test 2009-11-12 23:56:50.000000000 +0000 +++ /var/www/localhost/feeds.20091124/tests/feeds.test 2009-11-23 15:33:00.000000000 +0000 @@ -61,7 +61,7 @@ class FeedsRSStoNodesTest extends FeedsW $this->assertRaw('node/'. $nid .'/delete-items'); // Navigate to a non-feed node, there should be no Feeds tabs visible. - $story_nid = db_result(db_query_range('SELECT nid FROM {node} WHERE type = "story"', 0, 1)); + $story_nid = db_result(db_query_range('SELECT nid FROM {node} WHERE type = \'story\'', 0, 1)); $this->drupalGet('node/'. $story_nid); $this->assertNoRaw('node/'. $story_nid .'/import'); $this->assertNoRaw('node/'. $story_nid .'/delete-items'); @@ -307,7 +307,7 @@ class FeedsRSStoDataTest extends FeedsWe $this->addMappings('rss', $mappings); // Verify the mapping configuration. - $config = unserialize(db_result(db_query('SELECT config FROM {feeds_importer} WHERE id = "rss"'))); + $config = unserialize(db_result(db_query('SELECT config FROM {feeds_importer} WHERE id = \'rss\''))); $stored_mappings = $config['processor']['config']['mappings']; foreach ($mappings as $i => $mapping) { $this->assertEqual($mapping['source'], $stored_mappings[$i]['source']); @@ -539,7 +539,7 @@ class FeedsSchedulerTestCase extends Fee $this->assertEqual($count, 10, '10 feeds refreshed on cron.'); // There should be 100 story nodes in the database. - $count = db_result(db_query('SELECT COUNT(*) FROM {node} WHERE type = "story"')); + $count = db_result(db_query('SELECT COUNT(*) FROM {node} WHERE type = \'story\'')); $this->assertEqual($count, 100, 'There are 100 story nodes aggregated.'); // Hit twice cron again. @@ -555,7 +555,7 @@ class FeedsSchedulerTestCase extends Fee $this->assertEqual(count($schedule), 20, '20 feeds refreshed on cron.'); // There should be 200 story nodes in the database. - $count = db_result(db_query('SELECT COUNT(*) FROM {node} WHERE type = "story" AND status = 1')); + $count = db_result(db_query('SELECT COUNT(*) FROM {node} WHERE type = \'story\' AND status = 1')); $this->assertEqual($count, 200, 'There are 200 story nodes aggregated.'); // There shouldn't be any items with scheduled = 1 now, if so, this would @@ -608,7 +608,7 @@ class FeedsSchedulerTestCase extends Fee $this->assertFalse($equal, 'Every feed schedule time changed.'); // There should be 200 story nodes in the database. - $count = db_result(db_query('SELECT COUNT(*) FROM {node} WHERE type = "story" AND status = 1')); + $count = db_result(db_query('SELECT COUNT(*) FROM {node} WHERE type = \'story\' AND status = 1')); $this->assertEqual($count, 200, 'The total of 200 story nodes has not changed.'); // @todo: use debug time feature in FeedsScheduler and test behavior in future. @@ -676,4 +676,4 @@ class FeedsSyndicationParserTestCase ext ), ); } -} \ No newline at end of file +}