mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
skip localstorage dependend user test when not using local user storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
ad10a33316
commit
d08d0ebdda
1 changed files with 12 additions and 0 deletions
|
|
@ -10,9 +10,11 @@
|
|||
namespace Test\User;
|
||||
|
||||
use OC\AllConfig;
|
||||
use OC\Files\Mount\ObjectHomeMountProvider;
|
||||
use OC\Hooks\PublicEmitter;
|
||||
use OC\User\User;
|
||||
use OCP\Comments\ICommentsManager;
|
||||
use OCP\Files\Storage\IStorageFactory;
|
||||
use OCP\IConfig;
|
||||
use OCP\IUser;
|
||||
use OCP\Notification\IManager as INotificationManager;
|
||||
|
|
@ -214,6 +216,16 @@ class UserTest extends TestCase {
|
|||
}
|
||||
|
||||
public function testDeleteWithDifferentHome() {
|
||||
|
||||
/** @var ObjectHomeMountProvider $homeProvider */
|
||||
$homeProvider = \OC::$server->get(ObjectHomeMountProvider::class);
|
||||
$user = $this->createMock(IUser::class);
|
||||
$user->method('getUID')
|
||||
->willReturn('foo');
|
||||
if ($homeProvider->getHomeMountForUser($user, $this->createMock(IStorageFactory::class)) !== null) {
|
||||
$this->markTestSkipped("Skipping test for non local home storage");
|
||||
}
|
||||
|
||||
/**
|
||||
* @var Backend | \PHPUnit\Framework\MockObject\MockObject $backend
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue