Skip to content

Commit 26dbf43

Browse files
committed
Fix test
1 parent 49a4ab8 commit 26dbf43

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/Feature/CallbackRedirectTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ public function test_callback_shows_goodbye_when_no_url_provided(): void
4040
$response->assertSee('Goodbye');
4141
}
4242

43-
public function test_callback_shows_goodbye_for_partial_nativephp_scheme(): void
43+
public function test_callback_redirects_for_any_non_http_scheme(): void
4444
{
45-
$response = $this->get('/callback?url=nativephp:/missing-slash');
45+
$response = $this->get('/callback?url=myapp://some/path');
4646

47-
$response->assertStatus(200);
48-
$response->assertSee('Goodbye');
47+
$response->assertRedirect();
48+
49+
$redirectUrl = $response->headers->get('Location');
50+
51+
$this->assertStringStartsWith('myapp://some/path?token=', $redirectUrl);
4952
}
5053
}

0 commit comments

Comments
 (0)