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

Which PHP Framework to choose in 2024

jQuery UI - Dialog - How to hide autofocus

HTML - How to add placeholder to dropdown (select) with selectpicker