mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
adjust test
This commit is contained in:
parent
be55a90323
commit
19486837b2
2 changed files with 7 additions and 2 deletions
|
|
@ -113,7 +113,9 @@ class Test_Files_Sharing_Cache extends TestCase {
|
|||
}
|
||||
|
||||
protected function tearDown() {
|
||||
$this->sharedCache->clear();
|
||||
if($this->sharedCache) {
|
||||
$this->sharedCache->clear();
|
||||
}
|
||||
|
||||
self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
|
||||
|
||||
|
|
|
|||
|
|
@ -368,7 +368,10 @@ class Test_Files_Sharing_Storage extends OCA\Files_sharing\Tests\TestCase {
|
|||
|
||||
self::loginHelper(self::TEST_FILES_SHARING_API_USER2);
|
||||
$this->assertTrue($rootView->file_exists('/' . self::TEST_FILES_SHARING_API_USER2 . '/files/' . $this->folder));
|
||||
OC_Hook::emit('OC_Filesystem', 'setup', array('user' => self::TEST_FILES_SHARING_API_USER3, 'user_dir' => \OC_User::getHome(self::TEST_FILES_SHARING_API_USER3)));
|
||||
|
||||
$mountConfigManager = \OC::$server->getMountProviderCollection();
|
||||
$mounts = $mountConfigManager->getMountsForUser(\OC::$server->getUserManager()->get(self::TEST_FILES_SHARING_API_USER3));
|
||||
array_walk($mounts, array(\OC\Files\Filesystem::getMountManager(), 'addMount'));
|
||||
|
||||
$this->assertTrue($rootView->file_exists('/' . self::TEST_FILES_SHARING_API_USER3 . '/files/' . $this->filename));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue