Skip to content

Commit 3641f95

Browse files
committed
fix: tests
1 parent 4b8bcd2 commit 3641f95

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

apps/settings/tests/Controller/AppSettingsControllerTest.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,12 @@ public function testViewApps(): void {
165165
->method('isUpdateAvailable')
166166
->willReturn(false);
167167
$this->config
168-
->expects($this->once())
169168
->method('getSystemValueBool')
170-
->with('appstoreenabled', true)
171-
->willReturn(true);
169+
->willReturnMap([
170+
['appstoreenabled', true, false],
171+
['unified_search.enabled', false, false],
172+
['enable_non-accessible_features', true, true],
173+
]);
172174
$this->navigationManager
173175
->expects($this->once())
174176
->method('setActiveEntry')
@@ -205,10 +207,12 @@ public function testViewAppsAppstoreNotEnabled(): void {
205207
->willReturn(false);
206208
$this->bundleFetcher->expects($this->once())->method('getBundles')->willReturn([]);
207209
$this->config
208-
->expects($this->once())
209210
->method('getSystemValueBool')
210-
->with('appstoreenabled', true)
211-
->willReturn(false);
211+
->willReturnMap([
212+
['appstoreenabled', true, false],
213+
['unified_search.enabled', false, false],
214+
['enable_non-accessible_features', true, true],
215+
]);
212216
$this->navigationManager
213217
->expects($this->once())
214218
->method('setActiveEntry')

lib/private/TemplateLayout.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ public function getPageTemplate(string $renderAs, string $appId): ITemplate {
144144
Util::addStyle('guest');
145145
$page->assign('bodyid', 'body-login');
146146

147-
$userDisplayName = false;
148147
$user = Server::get(IUserSession::class)->getUser();
149148
$userId = $user?->getUID();
150149

0 commit comments

Comments
 (0)