mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01:00
[ticket/14442] Use get_content() in plupload functional tests
PHPBB3-14442
This commit is contained in:
parent
e4f562bdba
commit
105ffe8da3
@ -107,11 +107,11 @@ class phpbb_functional_plupload_test extends phpbb_functional_test_case
|
||||
|
||||
if ($i < self::CHUNKS - 1)
|
||||
{
|
||||
$this->assertContains('{"jsonrpc":"2.0","id":"id","result":null}', self::$client->getResponse()->getContent());
|
||||
$this->assertContains('{"jsonrpc":"2.0","id":"id","result":null}', self::get_content());
|
||||
}
|
||||
else
|
||||
{
|
||||
$response = json_decode(self::$client->getResponse()->getContent(), true);
|
||||
$response = json_decode(self::get_content(), true);
|
||||
$this->assertEquals('valid.jpg', $response['data'][0]['real_filename']);
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ class phpbb_functional_plupload_test extends phpbb_functional_test_case
|
||||
array('X-PHPBB-USING-PLUPLOAD' => '1')
|
||||
);
|
||||
|
||||
$response = json_decode(self::$client->getResponse()->getContent(), true);
|
||||
$response = json_decode((string) self::get_content(), true);
|
||||
$this->assertEquals('valid.jpg', $response['data'][0]['real_filename']);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user