diff options
Diffstat (limited to 'modules/blogapi/blogapi.test')
-rw-r--r-- | modules/blogapi/blogapi.test | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/blogapi/blogapi.test b/modules/blogapi/blogapi.test index 23595ca27..0f7770d41 100644 --- a/modules/blogapi/blogapi.test +++ b/modules/blogapi/blogapi.test @@ -108,8 +108,10 @@ class BlogAPITestCase extends DrupalWebTestCase { /** * Add taxonomy vocabulary. * - * @param string $vocab Vocabulary name. - * @return interger Vocab id. + * @param string $vocab + * Vocabulary name. + * @return integer + * The vocab ID. */ function addVocabulary($vocab) { $edit = array(); @@ -128,15 +130,18 @@ class BlogAPITestCase extends DrupalWebTestCase { } $this->assertNotNull($vid, t('Vocabulary found in database.')); + return $vid; } /** * Add a taxonomy term to vocabulary. * - * @param integer $vid Vocabulary id. + * @param integer $vid + * Vocabulary ID. * @param string $term Term name. - * @return interger Term id. + * @return interger + * The Term ID. */ function addTerm($vid, $term) { $edit = array(); @@ -154,6 +159,7 @@ class BlogAPITestCase extends DrupalWebTestCase { } $this->assertNotNull($tid, t('Term found in database.')); + return $tid; } } |