Skip to content

Commit 8f72d7a

Browse files
committed
Update naming and assertions to be correct
1 parent 8e39693 commit 8f72d7a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/Browser/Visit/SubdomainTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44

55
use Illuminate\Support\Facades\Route;
66

7-
it('can visit subdomain routes with browser testing', function (): void {
7+
it('can visit non-subdomain routes with subdomain host browser testing', function (): void {
88
Route::get('/app-test', fn (): string => '
99
<html>
10-
<head><title>App Subdomain</title></head>
10+
<head><title>Non Subdomain</title></head>
1111
<body>
12-
<h1>Welcome to App Subdomain</h1>
13-
<div id="content">This is the app subdomain content</div>
12+
<h1>Welcome to NON Subdomain</h1>
13+
<div id="content">This is the non subdomain content</div>
1414
</body>
1515
</html>
1616
');
1717

1818
pest()->browser()->withHost('app.localhost');
1919

2020
visit('/app-test')
21-
->assertSee('Welcome to App Subdomain')
22-
->assertSeeIn('#content', 'This is the app subdomain content')
23-
->assertTitle('App Subdomain');
21+
->assertSee('Welcome to NON Subdomain')
22+
->assertSeeIn('#content', 'This is the non subdomain content')
23+
->assertTitle('Non Subdomain');
2424
});
2525

26-
it('works with Laravel Sail style subdomains', function (): void {
26+
it('works with Laravel subdomain style', function (): void {
2727
// Simulate Laravel Sail subdomain routing pattern
2828
Route::domain('{subdomain}.localhost')->group(function (): void {
2929
Route::get('/api/health', fn (): array => [

0 commit comments

Comments
 (0)