]> git.mxchange.org Git - shipsimu.git/blobdiff - tests/old/personell-test.php
Several fixes for older tests
[shipsimu.git] / tests / old / personell-test.php
index 5a8e604a62cb11b1d2e44fb832894f7ccaa9c8bc..4fc139b2525de5c1cc6f81f619ddddd3b9d7a6a2 100644 (file)
@@ -1,10 +1,12 @@
 <?php
-define('TEST', true);
 // Change directory
 @chdir("../..");
 
+// Set testing mode (no starter.php will be loaded!)
+define('TEST_MODE', true);
+
 // Load config file
-require(dirname(dirname(__FILE__)) . "/inc/config.php");
+require(dirname(dirname(dirname(__FILE__))) . "/inc/config.php");
 
 // Load all include files
 require(PATH . "inc/includes.php");
@@ -12,14 +14,18 @@ require(PATH . "inc/includes.php");
 // Load all game classes
 require(PATH . "inc/classes.php");
 
+// Load file I/O handler
+require(PATH . "inc/file_io.php");
+
+// Load database layer
+require(PATH . "inc/database.php");
+
 // Set default application
 FrameworkConfiguration::getInstance()->setConfigEntry("default_application", "ship-simu");
+$application = "ship-simu";
 
-// Set testing mode (no starter.php will be loaded!)
-define('TEST_MODE', true);
-
-// Load the "selector"
-require(PATH . "inc/selector.php");
+// Load more includes
+require(PATH . "application/ship-simu/loader.php");
 
 // Wir tun hier so, als waere schon das Reederei-Objekt generiert und wir wollen
 // jetzt die Personalliste wiederherstellen