30 lines
694 B
PHP
30 lines
694 B
PHP
<?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();
|
|
});
|