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

How to upgrade MediaWiki to 1.40 version

How to add screenshot to App Store for your App