diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-10-14 11:51:59 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-11-01 17:32:43 +0100 |
commit | f90f8f7a123fa5c22a748ef15a27c9631a09f867 (patch) | |
tree | 3109215026a63109661764a751fe1464514d7be6 | |
parent | 8c7d14d3df04772649e3d9d293a4fdd9843f0ffe (diff) |
test_file_upload: Ensure we compare the correct contentdev-parallel-tests
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | application/test/tests/api_v2/test_file_upload.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application/test/tests/api_v2/test_file_upload.php b/application/test/tests/api_v2/test_file_upload.php index 5cc73a0ac..cb2f81b74 100644 --- a/application/test/tests/api_v2/test_file_upload.php +++ b/application/test/tests/api_v2/test_file_upload.php @@ -45,9 +45,13 @@ class test_file_upload extends common { $this->t->ok(!empty($ret["data"]["urls"]), "got URLs"); foreach ($ret["data"]["urls"] as $url) { + # remove tailing / + $url = substr($url, 0, strlen($url) - 1); $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"); } public function test_upload_uploadNothing() |