summaryrefslogtreecommitdiffstats
path: root/application/tests
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-04-25 16:53:52 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-04-25 16:53:52 +0200
commit812185f0e721bc2e500c590eb3ffe96a5cd1a518 (patch)
tree19f5f70134bf9271c3a79f22598424449f44fef0 /application/tests
parent59b426dbfb6dd83c0ddf0814f21a536ae500f3d9 (diff)
API 1.3.0: Allow multipaste creation for basic access
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/tests')
-rw-r--r--application/tests/test_api_v1.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/tests/test_api_v1.php b/application/tests/test_api_v1.php
index 8277f14d5..50264b6da 100644
--- a/application/tests/test_api_v1.php
+++ b/application/tests/test_api_v1.php
@@ -324,7 +324,7 @@ class test_api_v1 extends Test {
public function test_create_multipaste_canCreate()
{
- $apikey = $this->createUserAndApikey();
+ $apikey = $this->createUserAndApikey("basic");
$ret = $this->uploadFile($apikey, "data/tests/small-file");
$id = $ret["data"]["ids"][0];
@@ -344,7 +344,7 @@ class test_api_v1 extends Test {
public function test_create_multipaste_errorOnWrongID()
{
- $apikey = $this->createUserAndApikey();
+ $apikey = $this->createUserAndApikey("basic");
$ret = $this->uploadFile($apikey, "data/tests/small-file");
$id = $ret["data"]["ids"][0];
@@ -373,8 +373,8 @@ class test_api_v1 extends Test {
public function test_create_multipaste_errorOnWrongOwner()
{
- $apikey = $this->createUserAndApikey();
- $apikey2 = $this->createUserAndApikey();
+ $apikey = $this->createUserAndApikey("basic");
+ $apikey2 = $this->createUserAndApikey("basic");
$ret = $this->uploadFile($apikey, "data/tests/small-file");
$id = $ret["data"]["ids"][0];