Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix api test script
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jan 28, 2015
1 parent afc6c4d commit d129489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/runTests.php
Expand Up @@ -58,7 +58,7 @@ function apiPost($baseData, $url, $parameters, $private){
echo "<style>*{font-family: Arial,sans-serif;}</style>";
echo "<h3>Getting authentication token with user credentials</h3>";
flush();
$tokens = file_get_contents("http://$user:$password@$host.$path/api/pydio/keystore_generate_auth_token/php_client");
$tokens = file_get_contents("http://${user}:${password}@${host}${path}/api/pydio/keystore_generate_auth_token/php_client");
$data = json_decode($tokens, true);
if(is_array($data)){
echo "\n\nData is correctly decoded as JSON.";
Expand Down

0 comments on commit d129489

Please sign in to comment.