From: Bjoern Schiessle Date: Thu, 10 Oct 2013 08:47:35 +0000 (+0200) Subject: make sure that we are logged in ad user1 while performing the tests X-Git-Tag: v6.0.0alpha2~36^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1719deabed4296c7daec51d926640100ac94980;p=nextcloud-server.git make sure that we are logged in ad user1 while performing the tests --- diff --git a/apps/files_sharing/tests/api.php b/apps/files_sharing/tests/api.php index c55c186f089..2feea9e7e24 100644 --- a/apps/files_sharing/tests/api.php +++ b/apps/files_sharing/tests/api.php @@ -58,6 +58,10 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase { } function setUp() { + + //login as user1 + \Test_Files_Sharing_Api::loginHelper(\Test_Files_Sharing_Api::TEST_FILES_SHARING_API_USER1); + $this->data = 'foobar'; $this->view = new \OC_FilesystemView('/' . \Test_Files_Sharing_Api::TEST_FILES_SHARING_API_USER1 . '/files'); @@ -104,9 +108,6 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase { */ function testCreateShare() { - //login as user1 - \Test_Files_Sharing_Api::loginHelper(\Test_Files_Sharing_Api::TEST_FILES_SHARING_API_USER1); - // share to user // simulate a post request