summaryrefslogtreecommitdiffstats
path: root/application/test/tests/api_v2/test_file_upload.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-18 17:32:35 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-21 10:37:13 +0200
commit47d144d511f8cc0c045fa8bebf6fbadc040d84de (patch)
tree794430dc59a90cb571e03002398173361fa0c7a4 /application/test/tests/api_v2/test_file_upload.php
parent0569ecc413e75ca132d515b75faa8581d9672220 (diff)
Tests: Use is instead of ok for improved debug output
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/test/tests/api_v2/test_file_upload.php')
-rw-r--r--application/test/tests/api_v2/test_file_upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/test/tests/api_v2/test_file_upload.php b/application/test/tests/api_v2/test_file_upload.php
index cb2f81b74..e8717b074 100644
--- a/application/test/tests/api_v2/test_file_upload.php
+++ b/application/test/tests/api_v2/test_file_upload.php
@@ -50,8 +50,8 @@ class test_file_upload extends common {
$data[] = $this->SendHTTPRequest("GET", $url, '');
}
$this->t->ok($data[0] !== $data[1], 'Returned file contents should differ');
- $this->t->ok($data[0] === file_get_contents("data/tests/message1.bin"), "Returned correct data for file 1");
- $this->t->ok($data[1] === file_get_contents("data/tests/message2.bin"), "Returned correct data for file 2");
+ $this->t->is($data[0], file_get_contents("data/tests/message1.bin"), "Returned correct data for file 1");
+ $this->t->is($data[1], file_get_contents("data/tests/message2.bin"), "Returned correct data for file 2");
}
public function test_upload_uploadNothing()