tests updates
This commit is contained in:
@@ -10,13 +10,13 @@ final class ThemeViewResolverTest extends TestCase
|
||||
public function test_theme_view_candidates_prefer_active_theme_then_default(): void
|
||||
{
|
||||
config([
|
||||
'stylist.default_theme' => 'default',
|
||||
'stylist.default_theme' => 'admin',
|
||||
'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-theme-admin::components.page-hero', $candidates);
|
||||
$this->assertContains('stylist::components.page-hero', $candidates);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user