@@ -713,7 +713,15 @@ public function testGetLoginBackground(): void {
713713 @$ this ->assertEquals ($ expected , $ this ->themingController ->getImage ('background ' ));
714714 }
715715
716- public function testGetManifest (): void {
716+ public static function dataGetManifest (): array {
717+ return [
718+ [true ],
719+ [false ],
720+ ];
721+ }
722+
723+ /** @dataProvider dataGetManifest */
724+ public function testGetManifest (bool $ standalone ): void {
717725 $ this ->config
718726 ->expects ($ this ->once ())
719727 ->method ('getAppValue ' )
@@ -734,6 +742,11 @@ public function testGetManifest(): void {
734742 ['theming.Icon.getTouchIcon ' , ['app ' => 'core ' ], 'touchicon ' ],
735743 ['theming.Icon.getFavicon ' , ['app ' => 'core ' ], 'favicon ' ],
736744 ]);
745+ $ this ->config
746+ ->expects ($ this ->once ())
747+ ->method ('getSystemValueBool ' )
748+ ->with ('theming.standalone_window.enabled ' , true )
749+ ->willReturn ($ standalone );
737750 $ response = new JSONResponse ([
738751 'name ' => 'Nextcloud ' ,
739752 'start_url ' => 'localhost ' ,
@@ -750,7 +763,7 @@ public function testGetManifest(): void {
750763 'sizes ' => '16x16 '
751764 ]
752765 ],
753- 'display ' => 'standalone ' ,
766+ 'display ' => $ standalone ? 'standalone ' : ' browser ' ,
754767 'short_name ' => 'Nextcloud ' ,
755768 'theme_color ' => null ,
756769 'background_color ' => null ,
0 commit comments