* Fix init.
This commit is contained in:
+2
-2
@@ -62,10 +62,10 @@ include $testPath . 'config/config.php';
|
||||
include $testPath. 'lib/db.class.php';
|
||||
include $testPath. 'lib/rest.php';
|
||||
$db = new db();
|
||||
if($config->test->base) $rest = new rest($config->test->base);
|
||||
|
||||
if(!empty($config->test->account) and !empty($config->test->password))
|
||||
if(!empty($config->test->account) and !empty($config->test->password) and !empty($config->test->base))
|
||||
{
|
||||
$rest = new rest($config->test->base);
|
||||
$token = $rest->post('/tokens', array('account' => $config->test->account, 'password' => $config->test->password));
|
||||
$token = $token->body;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user