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/tests/graph.test | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/simpletest/tests/graph.test') 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 // | ^ ^ -- cgit v1.2.3