public function dontSeeAuthentication($guard = null)
    {
        $auth = $this->app['auth'];

        if (method_exists($auth, 'guard')) {
            $auth = $auth->guard($guard);
        }

        $this->assertNotTrue($auth->check(), 'There is an user authenticated');
    }
public function dontSeeAuthentication($guard = null)
    {
        $auth = $this->app['auth'];

        if (method_exists($auth, 'guard')) {
            $auth = $auth->guard($guard);
        }

        $this->assertNotTrue($auth->check(), 'There is an user authenticated');
    }
public function dontSeeAuthentication ( $ guard = null ) { $ auth = $ this -> app [ 'auth' ] ; if ( method_exists ( $ auth , 'guard' ) ) { $ auth = $ auth -> guard ( $ guard ) ; } $ this -> assertNotTrue ( $ auth -> check ( ) , 'There is an user authenticated' ) ; }
Check that user is not authenticated.
You can specify the guard that should be use for Laravel >= 5.2.
@param string|null $guard
Check that user is not authenticated . You can specify the guard that should be use for Laravel > = 5 . 2 .