diff --git a/Test/Generator/GeneratorTest.php b/Test/Generator/GeneratorTest.php
index <HASH>..<HASH> 100644
--- a/Test/Generator/GeneratorTest.php
+++ b/Test/Generator/GeneratorTest.php
@@ -13,7 +13,9 @@ abstract class GeneratorTest extends \PHPUnit_Framework_TestCase
   public function setUp()
   {
     $this->setUpTemporalDirectory();
-    define('DRUPAL_ROOT', getcwd());
+    if (!defined('DRUPAL_ROOT')) {
+      define('DRUPAL_ROOT', getcwd());
+    }
   }
 
   public function setUpTemporalDirectory()
Ask if DRUPAL_ROOT defined and define