Adjust test include paths to new php-tests directory
authorJoachim Breitner <mail@joachim-breitner.de>
Fri, 26 Jun 2009 07:27:30 +0000 (09:27 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 26 Jun 2009 07:27:30 +0000 (09:27 +0200)
web/php-tests/BuisnessLogicTest.php
web/php-tests/DatabaseTest.php

index cdfddc6..f542818 100644 (file)
@@ -1,9 +1,9 @@
 <?php
-       include("../User.php");
-       include("../Plant.php");
-       include("../Controller.php");
-       include("../Season.php");
-       include("../SeasonScore.php");
+       include("../php/User.php");
+       include("../php/Plant.php");
+       include("../php/Controller.php");
+       include("../php/Season.php");
+       include("../php/SeasonScore.php");
 
        class TestOfBuisnessLogic extends UnitTestCase
        {
@@ -89,7 +89,7 @@
                        $res = $this->m_Controller->HandleRemoteProcedureCall("Auth", "test", "test", "", "");
                        $res = $this->m_Controller->HandleRemoteProcedureCall("CreatePlant", "", "", "newplant", "RULE a GROW BY 1");
                        
-                       $GLOBALS['ValidatorFile'] = '../../cgi/validate';
+                       $GLOBALS['ValidatorFile'] = '../cgi/validate';
                        $res = $this->m_Controller->HandleRemoteProcedureCall("ValidatePlant", "test", "", "newplant", "");
                        $this->validateRPCResponse($res, "ValidatePlant", "{\"valid\":true}");
                        
index 757b7d0..949648c 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-       include("../Database.php");
+       include("../php/Database.php");
 
        class TestOfDataBase extends UnitTestCase
        {