NOW MANAGED ON CODEBERG
Testing: Added favicon cleanup
Dan Brown1005f4bd7a1e
diff --git a/tests/Helpers/FileProvider.php b/tests/Helpers/FileProvider.phpindex 99ee11efb..442e036ff 100644--- a/tests/Helpers/FileProvider.php+++ b/tests/Helpers/FileProvider.php@@ -159,4 +159,12 @@ class FileProvider$fileService->deleteFile($file);}}++ /**+ * Reset the application favicon image in the public path.+ */+ public function resetAppFavicon(): void+ {+ file_put_contents(public_path('favicon.ico'), file_get_contents(public_path('icon.ico')));+ }}diff --git a/tests/PwaManifestTest.php b/tests/PwaManifestTest.phpindex b8317321d..ad9479048 100644--- a/tests/PwaManifestTest.php+++ b/tests/PwaManifestTest.php@@ -32,6 +32,8 @@ class PwaManifestTest extends TestCasepublic function test_manifest_uses_configured_icons_if_existing(){+ $this->beforeApplicationDestroyed(fn() => $this->files->resetAppFavicon());+$resp = $this->get('/manifest.json');$resp->assertJson(['icons' => [[