parent
9c4648eb94
commit
101cdb5d10
5 changed files with 151 additions and 9 deletions
20
tests/Unit/Service/FaviconTest.php
Normal file
20
tests/Unit/Service/FaviconTest.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Unit\Service;
|
||||
|
||||
use App\Service\Favicon;
|
||||
|
||||
use function expect;
|
||||
use function test;
|
||||
|
||||
test('Favicon returns SVG string', function (): void {
|
||||
$favicon = new Favicon();
|
||||
$result = (string)$favicon;
|
||||
|
||||
expect($result)
|
||||
->toBeString()
|
||||
->toContain('data:image/svg+xml')
|
||||
->toContain('transform=\'rotate(')
|
||||
->toContain('viewBox=\'0 0 512 512\'');
|
||||
})
|
||||
->covers(Favicon::class);
|
Loading…
Add table
Add a link
Reference in a new issue