diff options
author | Jan C. Borchardt <hey@jancborchardt.net> | 2020-08-06 22:55:30 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-09-07 08:30:01 +0200 |
commit | 4c48d6bf18c0394fc617a73c9bbc2872d7d2421f (patch) | |
tree | 431d2925ff17b7f1f314a99a054bae27bf1c7386 /apps/settings/tests/Controller/AdminSettingsControllerTest.php | |
parent | 5483d02b5e3ef8d20054d3d0332d82a8a3dbd5b0 (diff) | |
download | nextcloud-server-4c48d6bf18c0394fc617a73c9bbc2872d7d2421f.tar.gz nextcloud-server-4c48d6bf18c0394fc617a73c9bbc2872d7d2421f.zip |
Add 'Reasons to use Nextcloud in your organization' call to action in settings
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps/settings/tests/Controller/AdminSettingsControllerTest.php')
-rw-r--r-- | apps/settings/tests/Controller/AdminSettingsControllerTest.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/settings/tests/Controller/AdminSettingsControllerTest.php b/apps/settings/tests/Controller/AdminSettingsControllerTest.php index 137540c52d4..21bd29de355 100644 --- a/apps/settings/tests/Controller/AdminSettingsControllerTest.php +++ b/apps/settings/tests/Controller/AdminSettingsControllerTest.php @@ -37,7 +37,6 @@ use OCP\IRequest; use OCP\IUser; use OCP\IUserSession; use OCP\Settings\IManager; -use OCP\Support\Subscription\IRegistry; use PHPUnit\Framework\MockObject\MockObject; use Test\TestCase; @@ -87,7 +86,7 @@ class AdminSettingsControllerTest extends TestCase { $this->subAdmin ); - $user = \OC::$server->getUserManager()->createUser($this->adminUid, 'olo'); + $user = \OC::$server->getUserManager()->createUser($this->adminUid, 'mylongrandompassword'); \OC_User::setUserId($user->getUID()); \OC::$server->getGroupManager()->createGroup('admin')->addUser($user); } @@ -100,7 +99,6 @@ class AdminSettingsControllerTest extends TestCase { public function testIndex() { $user = $this->createMock(IUser::class); - $registry = $this->createMock(IRegistry::class); $this->userSession ->method('getUser') ->willReturn($user); @@ -125,7 +123,7 @@ class AdminSettingsControllerTest extends TestCase { ->expects($this->once()) ->method('getAdminSettings') ->with('test') - ->willReturn([5 => new ServerDevNotice($registry)]); + ->willReturn([5 => $this->createMock(ServerDevNotice::class)]); $idx = $this->adminSettingsController->index('test'); |