laravel / browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.
MIT License
509 stars 75 forks source link

Phpunit failing #101

Closed stafot closed 5 years ago

stafot commented 5 years ago

Description:

Failing to run tests getting the following error. Error: Call to undefined method App\Console\Kernel::bootstrap()

Based on this and README of this repo. I created a trait CreatesApplication.php and call it from the BrowserKitTestCase.php. Same results having even if instead of having trait I have a createApplication function on BrowserKitTestCase.php.

Steps To Reproduce:

Run phpunit

driesvints commented 5 years ago

Are you using Laravel or Lumen? We don't support integration with Lumen.

stafot commented 5 years ago

Sorry I assumed you support both. So for lumen the only option is to move to dusk?

driesvints commented 5 years ago

@stafot if you want to use Dusk it's best that you migrate the app to Laravel.

There's a note about this here: https://lumen.laravel.com/docs/5.8#compatibility