diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-01 19:56:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-01 19:56:34 +0000 |
commit | c403b16006428696815d3fc8fc9640c976d80e13 (patch) | |
tree | 810f3e53f99385da5dd3763a3c6fe18823edefb4 /modules | |
parent | 4f36a54832bb9c2d3a780cd93b6d04ec43f19caf (diff) | |
download | brdo-c403b16006428696815d3fc8fc9640c976d80e13.tar.gz brdo-c403b16006428696815d3fc8fc9640c976d80e13.tar.bz2 |
- Patch #397800 by JamesAn: cleaned up some PHPdocs.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/aggregator/aggregator.test | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test index 6d3305c52..058af286c 100644 --- a/modules/aggregator/aggregator.test +++ b/modules/aggregator/aggregator.test @@ -1,6 +1,11 @@ <?php // $Id$ +/** + * @file + * Creates tests for aggregator module. + */ + class AggregatorTestCase extends DrupalWebTestCase { private static $prefix = 'simpletest_aggregator_'; @@ -33,7 +38,8 @@ class AggregatorTestCase extends DrupalWebTestCase { /** * Delete an aggregator feed. * - * @param object $feed Feed object representing the feed. + * @param $feed + * Feed object representing the feed. */ function deleteFeed($feed) { $this->drupalPost('admin/content/aggregator/edit/feed/' . $feed->fid, array(), t('Delete')); @@ -103,7 +109,8 @@ class AggregatorTestCase extends DrupalWebTestCase { /** * Confirm item removal from a feed. * - * @param object $feed Feed object representing the feed. + * @param $feed + * Feed object representing the feed. */ function removeFeedItems($feed) { $this->drupalPost('admin/content/aggregator/remove/' . $feed->fid, array(), t('Remove items')); @@ -129,7 +136,8 @@ class AggregatorTestCase extends DrupalWebTestCase { /** * Pull feed categories from aggregator_category_feed table. * - * @param object $feed Feed object representing the feed. + * @param $feed + * Feed object representing the feed. */ function getFeedCategories($feed) { // add the categories to the feed so we can use them @@ -142,9 +150,12 @@ class AggregatorTestCase extends DrupalWebTestCase { /** * Check if the feed name and url is unique. * - * @param string $feed_name Feed name to check. - * @param string $feed_url Feed url to check. - * @return boolean Feed is unique. + * @param $feed_name + * String containing the feed name to check. + * @param $feed_url + * String containing the feed url to check. + * @return + * TRUE if feed is unique. */ function uniqueFeed($feed_name, $feed_url) { $result = db_query("SELECT COUNT(*) FROM {aggregator_feed} WHERE title = :title AND url = :url", array(':title' => $feed_name, ':url' => $feed_url))->fetchField(); |