X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fobjectcache%2FRESTBagOStuffTest.php;h=4ef4aabb92963e46b8e50a1b0dadf2c826a491fc;hp=ebeb1092a6a2f17be7ec627d75340a659fda1090;hb=cf0ebed65ad14dc9a48b0d69e0d77fc5f4f83e92;hpb=bb8608c98a3d677d8557dd7056a7434c7c38c055 diff --git a/tests/phpunit/includes/objectcache/RESTBagOStuffTest.php b/tests/phpunit/includes/objectcache/RESTBagOStuffTest.php index ebeb1092a6..4ef4aabb92 100644 --- a/tests/phpunit/includes/objectcache/RESTBagOStuffTest.php +++ b/tests/phpunit/includes/objectcache/RESTBagOStuffTest.php @@ -1,6 +1,8 @@ client->expects( $this->once() )->method( 'run' )->with( [ 'method' => 'GET', 'url' => 'http://test/rest/42xyz42' - // list( $rcode, $rdesc, $rhdrs, $rbody, $rerr ) + // list( $rcode, $rdesc, $rhdrs, $rbody, $rerr ) ] )->willReturn( [ 200, 'OK', [], 's:8:"somedata";', 0 ] ); $result = $this->bag->get( '42xyz42' ); $this->assertEquals( 'somedata', $result ); @@ -69,7 +71,7 @@ class RESTBagOStuffTest extends MediaWikiTestCase { $this->client->expects( $this->once() )->method( 'run' )->with( [ 'method' => 'PUT', 'url' => 'http://test/rest/42xyz42', - 'body' => 's:8:"postdata";' + 'body' => 's:8:"postdata";' // list( $rcode, $rdesc, $rhdrs, $rbody, $rerr ) ] )->willReturn( [ 200, 'OK', [], 'Done', 0 ] ); $result = $this->bag->set( '42xyz42', 'postdata' );