Posts

Showing posts with the label Codeception

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.