We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a4ab8 commit 26dbf43Copy full SHA for 26dbf43
tests/Feature/CallbackRedirectTest.php
@@ -40,11 +40,14 @@ public function test_callback_shows_goodbye_when_no_url_provided(): void
40
$response->assertSee('Goodbye');
41
}
42
43
- public function test_callback_shows_goodbye_for_partial_nativephp_scheme(): void
+ public function test_callback_redirects_for_any_non_http_scheme(): void
44
{
45
- $response = $this->get('/callback?url=nativephp:/missing-slash');
+ $response = $this->get('/callback?url=myapp://some/path');
46
47
- $response->assertStatus(200);
48
- $response->assertSee('Goodbye');
+ $response->assertRedirect();
+
49
+ $redirectUrl = $response->headers->get('Location');
50
51
+ $this->assertStringStartsWith('myapp://some/path?token=', $redirectUrl);
52
53
0 commit comments