Update JsonRPC library
This commit is contained in:
@@ -35,15 +35,15 @@ abstract class Base extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
$this->app = new JsonRPC\Client(API_URL);
|
||||
$this->app->authentication('jsonrpc', API_KEY);
|
||||
// $this->app->debug = true;
|
||||
$this->app->getHttpClient()->withDebug();
|
||||
|
||||
$this->admin = new JsonRPC\Client(API_URL);
|
||||
$this->admin->authentication('admin', 'admin');
|
||||
// $this->admin->debug = true;
|
||||
$this->admin->getHttpClient()->withDebug();
|
||||
|
||||
$this->user = new JsonRPC\Client(API_URL);
|
||||
$this->user->authentication('user', 'password');
|
||||
// $this->user->debug = true;
|
||||
$this->user->getHttpClient()->withDebug();
|
||||
}
|
||||
|
||||
protected function getProjectId()
|
||||
|
||||
@@ -15,7 +15,7 @@ class MeTest extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException JsonRPC\AccessDeniedException
|
||||
* @expectedException JsonRPC\Exception\AccessDeniedException
|
||||
*/
|
||||
public function testNotAllowedAppProcedure()
|
||||
{
|
||||
@@ -23,7 +23,7 @@ class MeTest extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException JsonRPC\AccessDeniedException
|
||||
* @expectedException JsonRPC\Exception\AccessDeniedException
|
||||
*/
|
||||
public function testNotAllowedUserProcedure()
|
||||
{
|
||||
@@ -31,7 +31,7 @@ class MeTest extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException JsonRPC\AccessDeniedException
|
||||
* @expectedException JsonRPC\Exception\AccessDeniedException
|
||||
*/
|
||||
public function testNotAllowedProjectForUser()
|
||||
{
|
||||
@@ -140,7 +140,7 @@ class MeTest extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException JsonRPC\AccessDeniedException
|
||||
* @expectedException JsonRPC\Exception\AccessDeniedException
|
||||
*/
|
||||
public function testGetAdminTask()
|
||||
{
|
||||
@@ -148,7 +148,7 @@ class MeTest extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException JsonRPC\AccessDeniedException
|
||||
* @expectedException JsonRPC\Exception\AccessDeniedException
|
||||
*/
|
||||
public function testGetProjectActivityDenied()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user