You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Value_modelTest::testGetAnyForTracker
Mockery\Exception: No matching handler found for CI_DB_mysql_driver::query("select * from trackers where tracker_id = ?", Array). Either the method was unexpected or its arguments matched no expected argument list for this method
I don't actually get round to making assertions about the return value as I'm not sure how to correct that error in the result.
Any pointers would be gratefully received.
The text was updated successfully, but these errors were encountered:
I'm working my way through the book (very nice work) in order to retrofit tests into some CI code that I've taken over.
Everything goes fine until I try mocking a CI query object, for which the book has no example.
My additional function for Value_model:
and my test is:
I then get the following result:
I don't actually get round to making assertions about the return value as I'm not sure how to correct that error in the result.
Any pointers would be gratefully received.
The text was updated successfully, but these errors were encountered: