summaryrefslogtreecommitdiff
path: root/server/Test/InitTest.php
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-02-12 12:11:11 +0100
committerEoleDev <EoleDev@outlook.fr>2016-02-12 12:11:11 +0100
commitaf451ad44290f6cf8373b3672da1ada64f91ecfc (patch)
treeaf5e6924ca82bcb676fd4a9342c5e25a59191ffb /server/Test/InitTest.php
parentad33435ce05302c76618fa77282811ade5a53119 (diff)
Add Init and AppClass to do tests, Error Correction in App.php
Diffstat (limited to 'server/Test/InitTest.php')
-rwxr-xr-xserver/Test/InitTest.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/server/Test/InitTest.php b/server/Test/InitTest.php
new file mode 100755
index 0000000..c1900a6
--- /dev/null
+++ b/server/Test/InitTest.php
@@ -0,0 +1,28 @@
+<?php
+ include_once("../config.inc.php");
+ include_once("AppTestClass.php");
+
+ $user = "demo";
+ $password = "demopass";
+ $project = "demo";
+
+ $Args = Array(
+ "user" => Array(
+ "name" => $user,
+ "password" => $password,
+ "domain" => Array(
+ "name" => "Default")
+ ),
+ "scope" => Array(
+ "project" => Array(
+ "name" => $project,
+ "domain" => Array(
+ "name" => "Default")
+ )
+ ),
+ "authUrl" => $config["urlAuth"]
+ );
+
+ $App = new AppTest($Args);
+
+?>