summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-08 21:37:21 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-08 21:37:21 +0000
commitb6fd223d1a6d5b9721bbc729f86018fa5031f6c3 (patch)
treea642c93a1a20d1bc1b6557262fefd08b661aade6 /modules/taxonomy/taxonomy.test
parentc2746a949ee34bd9a93f21d1ca808a918fe7ae52 (diff)
downloadbrdo-b6fd223d1a6d5b9721bbc729f86018fa5031f6c3.tar.gz
brdo-b6fd223d1a6d5b9721bbc729f86018fa5031f6c3.tar.bz2
- Patch #302396 by chx, catch: made some tests more granular so they an be run in parallel or stand-alone.
Diffstat (limited to 'modules/taxonomy/taxonomy.test')
-rw-r--r--modules/taxonomy/taxonomy.test32
1 files changed, 30 insertions, 2 deletions
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.