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);
|
$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()
|
public function test_manifest_uses_configured_icons_if_existing()
|
||||||
{
|
{
|
||||||
|
$this->beforeApplicationDestroyed(fn() => $this->files->resetAppFavicon());
|
||||||
|
|
||||||
$resp = $this->get('/manifest.json');
|
$resp = $this->get('/manifest.json');
|
||||||
$resp->assertJson([
|
$resp->assertJson([
|
||||||
'icons' => [[
|
'icons' => [[
|
||||||
|
|
Loading…
Reference in New Issue