From 843524be0f8b988f38bcbe28b4acceee2b9199d5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 15 Feb 2015 16:13:10 +0100 Subject: api/file/create_multipase: return URL Signed-off-by: Florian Pritz --- application/tests/test_api_v1.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'application/tests') diff --git a/application/tests/test_api_v1.php b/application/tests/test_api_v1.php index 44b559852..3dcca0728 100644 --- a/application/tests/test_api_v1.php +++ b/application/tests/test_api_v1.php @@ -23,7 +23,7 @@ class test_api_v1 extends Test { private function uploadFile($apikey, $file) { - $ret = $this->CallAPI("POST", "$this->server/api/v1.0.0/file/upload", array( + $ret = $this->CallAPI("POST", "$this->server/api/v1.1.0/file/upload", array( "apikey" => $apikey, "file[1]" => curl_file_create($file), )); @@ -310,6 +310,7 @@ class test_api_v1 extends Test { $this->expectSuccess("create multipaste", $ret); $this->t->isnt($ret["data"]["url_id"], "", "got a multipaste ID"); + $this->t->isnt($ret["data"]["url"], "", "got a multipaste URL"); } public function test_create_multipaste_errorOnWrongID() -- cgit v1.2.3-24-g4f1b