Files
cresta31/Modules/Stylist/Tests/Feature/WelcomeThemeViewTest.php
T
2026-08-15 21:59:18 +01:00

33 lines
904 B
PHP

<?php
namespace Modules\Stylist\Tests\Feature;
use Tests\TestCase;
final class WelcomeThemeViewTest extends TestCase
{
public function test_bundled_frontend_theme_view_namespace_is_registered(): void
{
$this->assertTrue(view()->exists('stylist-theme-frontend::welcome'));
}
public function test_dashboard_view_is_owned_by_the_backend_theme(): void
{
$this->assertStringContainsString(
resource_path('themes/backend/views/dashboard.blade.php'),
view('dashboard')->getPath(),
);
}
public function test_home_route_renders_from_the_frontend_theme(): void
{
$response = $this->get('/');
$response->assertOk()->assertViewIs('welcome');
$this->assertStringContainsString(
resource_path('themes/frontend/views/welcome.blade.php'),
view('welcome')->getPath(),
);
}
}