Skip to content

Commit 6c8e10b

Browse files
committed
Fix tests
1 parent 99e5361 commit 6c8e10b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/event/listener_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function test_pwa_manifest()
326326
$this->template->expects(self::once())
327327
->method('assign_vars')
328328
->with([
329-
'U_MANIFEST_URL' => $this->controller_helper->route('phpbb_webpushnotifications_manifest_controller'),
329+
'U_MANIFEST_URL' => 'ext/phpbb/webpushnotifications/manifest.' . $this->php_ext,
330330
'U_TOUCH_ICON' => ext::PWA_ICON_DIR . '/icon-192x192.png',
331331
'SHORT_SITE_NAME' => 'Test',
332332
]);

tests/functional/functional_test.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ public function test_manifest()
121121
'display' => 'standalone',
122122
'orientation' => 'portrait',
123123
'dir' => 'ltr',
124-
'start_url' => '/',
125-
'scope' => '/',
124+
'start_url' => 'http://localhost',
125+
'scope' => 'http://localhost/',
126126
];
127127

128128
$this->login();
@@ -137,7 +137,7 @@ public function test_manifest()
137137
$crawler = self::submit($form);
138138
$this->assertStringContainsString($this->lang('CONFIG_UPDATED'), $crawler->filter('.successbox')->text());
139139

140-
self::request('GET', 'app.php/manifest', [], false);
140+
self::request('GET', 'ext/phpbb/webpushnotifications/manifest.php', [], false);
141141
$this->assertEquals(json_encode($expected), self::get_content());
142142
}
143143

0 commit comments

Comments
 (0)