diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-04 13:33:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-04 13:33:53 +0000 |
commit | 29730ab6597cdb4eba092a17d075e9124f3961c0 (patch) | |
tree | f6273cbaced34c3d06111a9661373fdfc8eb293e /modules/simpletest/drupal_web_test_case.php | |
parent | 3702347af9760797e05c3c9c9c9d78dae3a3f75c (diff) | |
download | brdo-29730ab6597cdb4eba092a17d075e9124f3961c0.tar.gz brdo-29730ab6597cdb4eba092a17d075e9124f3961c0.tar.bz2 |
- Patch #887134 by mfb, klausi: setting up modules in DrupalUnitTestCase is useless.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 8 |
1 files changed, 8 insertions, 0 deletions
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; |