Functional test in Laravel with External URL ( Google Login)

Viewed 950

I'm trying to test the Google Login in my Laravel App.

When I try to reach Google Login page I get a 404.

My idea is that in TestCase.php, I have a variable:

    protected $baseUrl = 'http://laravel.dev';

So, it could make a conflict.... well the thing is I don't know how to do it, or to fix it!

Here is my code:

$this->visit('/auth/login')
     ->click('google'); 
    dump(Request::url()); // https://accounts.google.com/o/oauth2/auth
    $this->dump(); --> Gives me a 404 page

Any idea is welcome !

1 Answers
Related