diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-02-01 17:00:56 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-02-01 17:00:56 +0100 |
commit | 105ffe8da30f93e5dd8990c8e4235e381d824ca8 (patch) | |
tree | 189ad2959bfb09944b5db84e1cad9628ccaa5095 /tests/functional/plupload_test.php | |
parent | e4f562bdbaea5c9c04abbad7306a0fe24908e199 (diff) | |
download | forums-105ffe8da30f93e5dd8990c8e4235e381d824ca8.tar forums-105ffe8da30f93e5dd8990c8e4235e381d824ca8.tar.gz forums-105ffe8da30f93e5dd8990c8e4235e381d824ca8.tar.bz2 forums-105ffe8da30f93e5dd8990c8e4235e381d824ca8.tar.xz forums-105ffe8da30f93e5dd8990c8e4235e381d824ca8.zip |
[ticket/14442] Use get_content() in plupload functional tests
PHPBB3-14442
Diffstat (limited to 'tests/functional/plupload_test.php')
-rw-r--r-- | tests/functional/plupload_test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/plupload_test.php b/tests/functional/plupload_test.php index d358681ad1..7735d82ed4 100644 --- a/tests/functional/plupload_test.php +++ b/tests/functional/plupload_test.php @@ -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']); } } |