Skip to content
Advertisement

Laravel Dusk – Class config does not exist

recently upgraded a 5.3 project to 5.4 and all seemed good.

Today I started to implement Dusk however had hit an issue when running the example test

JavaScript

I’ve had a look at line 40 of TestCase.php and its

JavaScript

So it does look like something to do with the global config helper anybody have any ideas?

I’m running

  • PHP 7.0.14
  • Laravel/Framework 5.4.8
  • Laravel/Dusk 1.0.5

The full composer.lock can be seen https://gist.github.com/OwenMelbz/c05172b33f6eb4483e37a56469b53722

Fingers crossed you guys have some ideas!

Cheers 🙂

Advertisement

Answer

For anybody else who has had this issue.

I had prefer stable set in the composer file, which installed PHPUnit 6.

This was “made stable today” – thus it installed during a composer update.

Downgrading to PHPUnit 5 fixes the issue – so was bad timing starting it today.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement