post('/register', [ 'username' => 'Test_User', 'mail' => 'test@example.com', 'password' => 'password', 'password_confirmation' => 'password', 'terms' => true, ]); expect(auth()->check())->toBeTrue() ->and($response->status())->toBe(302) ->and(parse_url((string) $response->headers->get('Location'), PHP_URL_PATH))->toBe(parse_url(RouteServiceProvider::HOME, PHP_URL_PATH)); });