mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14442] Use get_content() in plupload functional tests
PHPBB3-14442
This commit is contained in:
parent
e4f562bdba
commit
105ffe8da3
1 changed files with 3 additions and 3 deletions
|
@ -107,11 +107,11 @@ class phpbb_functional_plupload_test extends phpbb_functional_test_case
|
||||||
|
|
||||||
if ($i < self::CHUNKS - 1)
|
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
|
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']);
|
$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')
|
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']);
|
$this->assertEquals('valid.jpg', $response['data'][0]['real_filename']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue