Codeception 5.0 - Error: Call to a member function grabService() on null; Call to a member function grabEntityFromRepository() on null

 If you were on previous version of Codeception, and updated to 5.* you can catch errors like:

  • Call to a member function grabService() on null; 
  • Call to a member function grabEntityFromRepository() on null 
To fix this, you need to update your unit.suite.yml config file:
replace 'class_name: UnitTester' to 'actor: UnitTester'.

So, now, you need to specify your actor class in config file. After that, codeception can see your UnitTester class.

Comments

Popular posts from this blog

Idea PhpStorm - How to fix bugs with incorrect code Inspections and Autocomplete

CSS Как прикрепить слой (div) к краю

PHP - How to show expected return array elements