From b6fd223d1a6d5b9721bbc729f86018fa5031f6c3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 8 Sep 2008 21:37:21 +0000 Subject: - Patch #302396 by chx, catch: made some tests more granular so they an be run in parallel or stand-alone. --- modules/taxonomy/taxonomy.test | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy/taxonomy.test') diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index 82b3fd46e..e2e84398f 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -88,8 +88,8 @@ class TaxonomyTermFunctionsTestCase extends DrupalWebTestCase { */ function getInfo() { return array( - 'name' => t('Term functions'), - 'description' => t('Testing save/update/delete terms.'), + 'name' => t('Term no hierarchy'), + 'description' => t('Testing save/update/delete terms without a hierarchy.'), 'group' => t('Taxonomy') ); } @@ -161,6 +161,20 @@ class TaxonomyTermFunctionsTestCase extends DrupalWebTestCase { $edit['name'] = 0; taxonomy_save_vocabulary($edit); } +} + +class TaxonomyTermSingleTestCase extends DrupalWebTestCase { + + /** + * Implementation of getInfo(). + */ + function getInfo() { + return array( + 'name' => t('Term single hierarchy'), + 'description' => t('Testing save/update/delete terms in a single hierarchy.'), + 'group' => t('Taxonomy') + ); + } /** * Test single hierarchy terms. @@ -204,6 +218,20 @@ class TaxonomyTermFunctionsTestCase extends DrupalWebTestCase { $edit['name'] = 0; taxonomy_save_vocabulary($edit); } +} + +class TaxonomyTermMultipleTestCase extends DrupalWebTestCase { + + /** + * Implementation of getInfo(). + */ + function getInfo() { + return array( + 'name' => t('Term multiple hierarchy'), + 'description' => t('Testing save/update/delete terms in a multiple hierarchy.'), + 'group' => t('Taxonomy') + ); + } /** * Test multiple hierarchy terms. -- cgit v1.2.3