View more context

 

alt

I have

  1. "require-dev": {
  2. "silverstripe/behat-extension": "^4"
  3. }
in my composer.json

alt

oh well, I'll just set up the files manually

alt

on the plus side, PhpStorm's behat intergration is amazing

Files: Requires logging in with Slack to view/download
Pasted image at 2019-03-12, 9:09 PM
(1)
Mo

Anyone had this error before (while running tests):

Mo

Fatal error: Uncaught Error: Call to a member function activate() on boolean in /path/to/project/vendor/silverstripe/framework/src/Dev/State/KernelTestState.php on line 91

Mo
Files: Requires logging in with Slack to view/download
Full stack trace
Mo

I am trying to work out what I have changed that is generating the error 😕

nightjarnz

I would guess at accidentally freeing too many wrapping layers

nightjarnz

@Mo e.g. Config::nest() has Config::unnest (or is it Injector? something like that) which used to have to be handled manually when performing tests. Now though the setup functions do it automatically, so if you modified a setUp() that had one (legacy or whatever) and now it doesn't... or forgot to call parent::setUp() in one, then that might do it.