diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-04-14 13:17:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 13:17:16 +0200 |
commit | ea3a9ba86eba31bc127ea91fa706546d991f4984 (patch) | |
tree | b01d2f800a52e3883adb9314104ccc5c3f7bbac6 /tests | |
parent | 69262f83a7f7a9b3e82526b22e869eb71eb70d08 (diff) | |
parent | b05c9fe369643677c242e7e8362c005b52c516cc (diff) | |
download | nextcloud-server-ea3a9ba86eba31bc127ea91fa706546d991f4984.tar.gz nextcloud-server-ea3a9ba86eba31bc127ea91fa706546d991f4984.zip |
Merge pull request #31453 from nextcloud/s3-primary-ci-23
[stable23] Run tests with primary object storage in CI + large upload fixes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/User/UserTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php index aa56959d3cb..7fab7ececca 100644 --- a/tests/lib/User/UserTest.php +++ b/tests/lib/User/UserTest.php @@ -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 */ |