1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 18:04:03 +00:00
This commit is contained in:
Lars Klopstra 2021-11-11 20:51:50 +01:00
parent 157318e61b
commit 789e3688a0
5 changed files with 50 additions and 1 deletions

View file

@ -0,0 +1,14 @@
<?php
use function PHPUnit\Framework\assertFileExists;
test('it should throw an exception if the given source icon doesn\'t exist', function() {
seo()->favicon('i-dont-exist.png');
})->throws(Exception::class, 'Given icon path `i-dont-exist.png` does not exist.');
test('it should generate two favicons', function() {
seo()->favicon(__DIR__ . '/../stubs/logo.png');
assertFileExists(public_path('favicon.ico'));
assertFileExists(public_path('favicon.png'));
});

BIN
tests/stubs/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB