diff options
-rw-r--r-- | application/test/tests/api_v2/test_history.php | 8 |
1 files 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() |