diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-10 10:47:35 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-10 10:47:35 +0200 |
commit | a1719deabed4296c7daec51d926640100ac94980 (patch) | |
tree | 32afe360798df317c26ea4f391866f5d1838efb9 | |
parent | 7fe493fdb8d662b20b435c86aa23eb3b38a271b1 (diff) | |
download | nextcloud-server-a1719deabed4296c7daec51d926640100ac94980.tar.gz nextcloud-server-a1719deabed4296c7daec51d926640100ac94980.zip |
make sure that we are logged in ad user1 while performing the tests
-rw-r--r-- | apps/files_sharing/tests/api.php | 7 |
1 files changed, 4 insertions, 3 deletions
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 |