mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 13:00:26 +02:00
[ticket/14442] Use get_content() in plupload functional tests
PHPBB3-14442
This commit is contained in:
@@ -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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user