]> git.mxchange.org Git - shipsimu.git/blobdiff - tests/contract-test.php
fixes on default app for tests
[shipsimu.git] / tests / contract-test.php
index 326d104272e4cc15c9ce2be526249f08f7d2c4dc..e202630baa67d9293672c254d9eb28b761a683ff 100644 (file)
@@ -12,9 +12,14 @@ require(PATH . "inc/includes.php");
 // Load all game classes
 require(PATH . "inc/classes.php");
 
-// Load more include files
-$_GET['app'] = "ship-simu";
-require_once(PATH . "inc/selector.php");
+// Set default application
+FrameworkConfiguration::getInstance()->setConfigEntry("default_application", "ship-simu");
+
+// Set testing mode (no starter.php will be loaded!)
+define('TEST_MODE', true);
+
+// Load the "selector"
+require(PATH . "inc/selector.php");
 
 // Wir tun hier so, als waere schon das Reederei-Objekt generiert und wir wollen
 // jetzt die Personalliste wiederherstellen