Modelizer / Laravel-Selenium

Selenium Testing for Laravel 5
MIT License
108 stars 33 forks source link

$this->be does not work. #30

Closed chantezan closed 7 years ago

chantezan commented 7 years ago

I used that code because WithoutMiddleware not work,

$middleware = [];
if ( !App::runningUnitTests() ) {
    $middleware = ['auth','roles'];
}

but when i run test with selenium App::runningUnitTests() is true, so i tried use $this->be(User::find(9)) for skip the loging and throw error :( ErrorException: call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Auth\SessionGuard' does not have a method 'driver' $this->be(User::find(9)) not have problem with TestCase

chantezan commented 7 years ago

duplicated

Modelizer commented 7 years ago

https://github.com/Modelizer/Selenium/issues/21