10-04-2026
This commit is contained in:
parent
4d6b4930b2
commit
4bb89aad8c
836 changed files with 52961 additions and 5950 deletions
30
tests/Feature/Cms/HeroiconOutlineListTest.php
Normal file
30
tests/Feature/Cms/HeroiconOutlineListTest.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use FluxCms\Core\Services\HeroiconOutlineList;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
|
||||
uses(RefreshDatabase::class);
|
||||
|
||||
test('heroicon outline list returns a sorted string array', function () {
|
||||
$names = HeroiconOutlineList::names();
|
||||
|
||||
expect($names)->toBeArray();
|
||||
|
||||
foreach ($names as $name) {
|
||||
expect($name)->toBeString()->not->toBeEmpty();
|
||||
}
|
||||
|
||||
$sorted = $names;
|
||||
sort($sorted);
|
||||
expect($names)->toEqual($sorted);
|
||||
});
|
||||
|
||||
test('heroicon outline forgetCached allows list to be rebuilt', function () {
|
||||
HeroiconOutlineList::forgetCached();
|
||||
|
||||
$names = HeroiconOutlineList::names();
|
||||
|
||||
expect($names)->toBeArray();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue