From f7e5037e83266d44baf569e6d7ebcda0813d54bd Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 1 Feb 2017 21:36:14 +0100 Subject: tests: Expect string instead of int Signed-off-by: Florian Pritz --- application/test/tests/api_v2/test_history.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/test/tests/api_v2/test_history.php b/application/test/tests/api_v2/test_history.php index 988807c77..3a168cafa 100644 --- a/application/test/tests/api_v2/test_history.php +++ b/application/test/tests/api_v2/test_history.php @@ -28,7 +28,7 @@ class test_history extends common { $this->t->ok(empty($ret["data"]["items"]), "items key exists and empty"); $this->t->ok(empty($ret["data"]["multipaste_items"]), "multipaste_items key exists and empty"); - $this->t->is($ret["data"]["total_size"], 0, "total_size = 0 since no uploads"); + $this->t->is($ret["data"]["total_size"], "0", "total_size = 0 since no uploads"); } public function test_history_notEmptyAfterUploadSameMD5() @@ -48,7 +48,7 @@ class test_history extends common { $this->t->ok(!empty($ret["data"]["items"]), "history not empty after upload (items)"); $this->t->ok(empty($ret["data"]["multipaste_items"]), "didn't upload multipaste"); - $this->t->is($ret["data"]["total_size"], $expected_filesize, "total_size == uploaded files"); + $this->t->is($ret["data"]["total_size"], "$expected_filesize", "total_size == uploaded files"); } public function test_history_notEmptyAfterMultipaste() @@ -93,7 +93,7 @@ class test_history extends common { 'id', 'filename', 'mimetype', 'date', 'hash', 'filesize', 'thumbnail' ), array_keys($ret['data']["items"][$uploadid_image]), "item info for image lists thumbnail too"); $this->t->ok(empty($ret["data"]["multipaste_items"]), "didn't upload multipaste"); - $this->t->is($ret["data"]["total_size"], $expected_size, "total_size == uploaded files"); + $this->t->is($ret["data"]["total_size"], "$expected_size", "total_size == uploaded files"); } public function test_history_notSharedBetweenUsers() @@ -109,7 +109,7 @@ class test_history extends common { $this->t->ok(empty($ret["data"]["items"]), "items key exists and empty"); $this->t->ok(empty($ret["data"]["multipaste_items"]), "multipaste_items key exists and empty"); - $this->t->is($ret["data"]["total_size"], 0, "total_size = 0 since no uploads"); + $this->t->is($ret["data"]["total_size"], "0", "total_size = 0 since no uploads"); } public function test_history_specialVarsNotExpanded() -- cgit v1.2.3-24-g4f1b