summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-04-26 22:55:56 -0400
committerFrederic Guillot <fred@kanboard.net>2016-04-26 22:55:56 -0400
commit1936a74cb3affef4f439c695d7e3c9eacc5a9aae (patch)
treea080d8e0cdc77bf9fb1c88f870edc889e0fe0b07 /tests/integration
parent36bdcf193b6d54eefe27f58689c44953715a4dad (diff)
Update JsonRPC library
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/Base.php6
-rw-r--r--tests/integration/MeTest.php10
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/integration/Base.php b/tests/integration/Base.php
index 983d0ed9..6f3ae076 100644
--- a/tests/integration/Base.php
+++ b/tests/integration/Base.php
@@ -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()
diff --git a/tests/integration/MeTest.php b/tests/integration/MeTest.php
index 21f61756..1b028b84 100644
--- a/tests/integration/MeTest.php
+++ b/tests/integration/MeTest.php
@@ -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()
{