Skip to content

Commit

Permalink
initialise admin object for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Jun 14, 2014
1 parent e981631 commit 352dc29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/restapi_test/main.php
Expand Up @@ -20,6 +20,8 @@
return;
}

$admin = new stdClass();
$admin->email = getConfig('admin_address');

?>

Expand Down Expand Up @@ -106,6 +108,8 @@

<h2>Step 6 - Check if your admin address is in users</h2>
<?php

var_dump($admin->email);

$result = $api->userGetByEmail( $admin->email );
if ($result->status != 'success'){
Expand Down

0 comments on commit 352dc29

Please sign in to comment.