From 29730ab6597cdb4eba092a17d075e9124f3961c0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 4 Sep 2010 13:33:53 +0000 Subject: - Patch #887134 by mfb, klausi: setting up modules in DrupalUnitTestCase is useless. --- modules/simpletest/drupal_web_test_case.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/simpletest/drupal_web_test_case.php') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 945cbe9d0..323825ac2 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -582,6 +582,14 @@ class DrupalUnitTestCase extends DrupalTestCase { $this->skipClasses[__CLASS__] = TRUE; } + /** + * Sets up unit test environment. + * + * Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not + * install modules because tests are performed without accessing the database. + * Any required files must be explicitly included by the child class setUp() + * method. + */ protected function setUp() { global $conf; -- cgit v1.2.3