Where does the getRecent() method originate from? |
(08-09-2023, 06:10 PM)kenjis Wrote:(08-09-2023, 06:01 PM)sammyskills Wrote: Oh, I get you. For that to work, the method will need to be added to the system/Model's class phpdoc @method keyword. Both the when() and whenNot() methods are conditional traits and they return $this. Also, they work well in models without any problems. Just a question, since they are not new methods, is there any need for tests for this purpose?
I think it is better to have tests for Model and when()/whenNot().
|
Welcome Guest, Not a member yet? Register Sign In |