From b15fdfd40e4bf96b53f7afcf0e4dce359158cf1c Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 13 Nov 2024 09:42:26 +0100 Subject: chore(profile): move profile app from core to apps Signed-off-by: skjnldsv --- .../Core/Controller/ProfilePageControllerTest.php | 78 ---------------------- 1 file changed, 78 deletions(-) delete mode 100644 tests/Core/Controller/ProfilePageControllerTest.php (limited to 'tests/Core') diff --git a/tests/Core/Controller/ProfilePageControllerTest.php b/tests/Core/Controller/ProfilePageControllerTest.php deleted file mode 100644 index 361f93ff409..00000000000 --- a/tests/Core/Controller/ProfilePageControllerTest.php +++ /dev/null @@ -1,78 +0,0 @@ -createMock(IRequest::class); - $initialStateService = $this->createMock(IInitialState::class); - $profileManager = $this->createMock(ProfileManager::class); - $shareManager = $this->createMock(IManager::class); - $this->userManager = $this->createMock(IUserManager::class); - $userSession = $this->createMock(IUserSession::class); - $userStatusManager = $this->createMock(Manager::class); - $navigationManager = $this->createMock(INavigationManager::class); - $eventDispatcher = $this->createMock(IEventDispatcher::class); - - $this->controller = new ProfilePageController( - 'core', - $request, - $initialStateService, - $profileManager, - $shareManager, - $this->userManager, - $userSession, - $userStatusManager, - $navigationManager, - $eventDispatcher, - ); - } - - public function testUserNotFound(): void { - $this->userManager->method('get') - ->willReturn(null); - - $response = $this->controller->index('bob'); - - $this->assertTrue($response->isThrottled()); - } - - public function testUserDisabled(): void { - $user = $this->createMock(IUser::class); - $user->method('isEnabled') - ->willReturn(false); - - $this->userManager->method('get') - ->willReturn($user); - - $response = $this->controller->index('bob'); - - $this->assertFalse($response->isThrottled()); - } -} -- cgit v1.2.3