summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/graph.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-04 13:33:53 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-04 13:33:53 +0000
commit29730ab6597cdb4eba092a17d075e9124f3961c0 (patch)
treef6273cbaced34c3d06111a9661373fdfc8eb293e /modules/simpletest/tests/graph.test
parent3702347af9760797e05c3c9c9c9d78dae3a3f75c (diff)
downloadbrdo-29730ab6597cdb4eba092a17d075e9124f3961c0.tar.gz
brdo-29730ab6597cdb4eba092a17d075e9124f3961c0.tar.bz2
- Patch #887134 by mfb, klausi: setting up modules in DrupalUnitTestCase is useless.
Diffstat (limited to 'modules/simpletest/tests/graph.test')
-rw-r--r--modules/simpletest/tests/graph.test8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/simpletest/tests/graph.test b/modules/simpletest/tests/graph.test
index 70af3ff1e..36d91bf35 100644
--- a/modules/simpletest/tests/graph.test
+++ b/modules/simpletest/tests/graph.test
@@ -18,13 +18,15 @@ class GraphUnitTest extends DrupalUnitTestCase {
);
}
+ function setUp() {
+ require_once DRUPAL_ROOT . '/includes/graph.inc';
+ parent::setUp();
+ }
+
/**
* Test depth-first-search features.
*/
function testDepthFirstSearch() {
- // Provoke the inclusion of graph.inc.
- require_once DRUPAL_ROOT . '/includes/graph.inc';
-
// The sample graph used is:
// 1 --> 2 --> 3 5 ---> 6
// | ^ ^