Files
ABSDEV/Modules/Stylist/Tests/Feature/ThemeViewResolverTest.php
T
2026-07-23 17:23:57 +01:00

23 lines
669 B
PHP

<?php
namespace Modules\Stylist\Tests\Feature;
use Modules\Stylist\View\ThemeViewResolver;
use Tests\TestCase;
final class ThemeViewResolverTest extends TestCase
{
public function test_theme_view_candidates_prefer_active_theme_then_default(): void
{
config([
'stylist.default_theme' => 'default',
'stylist.themes_path' => resource_path('themes'),
]);
$candidates = app(ThemeViewResolver::class)->candidates('components.page-hero');
$this->assertContains('stylist-theme-default::components.page-hero', $candidates);
$this->assertContains('stylist::components.page-hero', $candidates);
}
}