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

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

MySQL - How to add JSON column type

Как сделать заголовок модуля активной ссылкой в Joomla 1.5