summaryrefslogtreecommitdiffstats
path: root/application/test
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-02-01 21:36:14 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-02-01 21:36:14 +0100
commitf7e5037e83266d44baf569e6d7ebcda0813d54bd (patch)
treecc20c895a322fe0440dff668beb00da8e901cbf4 /application/test
parentd89369a6723e841d7d0c058213d584b9d4f1eb72 (diff)
tests: Expect string instead of int
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/test')
-rw-r--r--application/test/tests/api_v2/test_history.php8
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()