mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Testing: Added favicon cleanup
Was leaving a changed favicon leaving other test to fail.
This commit is contained in:
parent
b24296e0c9
commit
1005f4bd7a
@ -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')));
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,8 @@ class PwaManifestTest extends TestCase
|
||||
|
||||
public function test_manifest_uses_configured_icons_if_existing()
|
||||
{
|
||||
$this->beforeApplicationDestroyed(fn() => $this->files->resetAppFavicon());
|
||||
|
||||
$resp = $this->get('/manifest.json');
|
||||
$resp->assertJson([
|
||||
'icons' => [[
|
||||
|
Loading…
Reference in New Issue
Block a user