From: Alexandre Emsenhuber Date: Fri, 28 Oct 2011 12:18:43 +0000 (+0000) Subject: Pass the (correct) session doApiRequest() X-Git-Tag: 1.31.0-rc.0~26852 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=1d903f20e6accc661f70d1e0a58fad8fb3eebd75;p=lhc%2Fweb%2Fwiklou.git Pass the (correct) session doApiRequest() --- diff --git a/tests/phpunit/includes/api/ApiTest.php b/tests/phpunit/includes/api/ApiTest.php index 139f8465f5..1d9c323893 100644 --- a/tests/phpunit/includes/api/ApiTest.php +++ b/tests/phpunit/includes/api/ApiTest.php @@ -96,7 +96,7 @@ class ApiTest extends ApiTestCase { "lgtoken" => $token, "lgname" => $user->username, "lgpassword" => "badnowayinhell", - ) + ), $ret[2] ); $result = $ret[0]; @@ -137,7 +137,7 @@ class ApiTest extends ApiTestCase { "lgtoken" => $token, "lgname" => $user->username, "lgpassword" => $user->password, - ) + ), $ret[2] ); $result = $ret[0]; @@ -230,7 +230,7 @@ class ApiTest extends ApiTestCase { 'action' => 'login', "lgtoken" => $token, "lgname" => $sysopUser->username, - "lgpassword" => $sysopUser->password ), $data ); + "lgpassword" => $sysopUser->password ), $data[2] ); $this->assertArrayHasKey( "login", $data[0] ); $this->assertArrayHasKey( "result", $data[0]['login'] );