@@ -138,5 +138,77 @@ public function process()
138138 $ Table ->find (
139139 'featured ' , //custom finder is known but required options are missing
140140 );
141+ $ Table ->find (
142+ 'unkonwn ' ,
143+ );
144+ $ Table ->find ('legacy ' );//Legacy should ignore params check
145+ $ Table ->find ('legacy ' , [//Legacy should ignore params check
146+ 'sort ' => ['Notes.note ' => 'ASC ' ],
147+ ]);
148+ $ Table ->find ('legacy ' , [//Legacy should ignore params check
149+ 'sort ' => ['Notes.note ' => 'ASC ' ],
150+ 'type ' => 'featured ' ,
151+ 'active ' => false ,
152+ ]);
153+ $ Table ->find ('optionsPacked ' );
154+ $ Table ->find ('optionsPacked ' , [//Legacy should ignore params check
155+ 'sort ' => ['Notes.note ' => 'ASC ' ],
156+ ]);
157+ $ Table ->find ('optionsPacked ' , [//Legacy should ignore params check
158+ 'sort ' => ['Notes.note ' => 'ASC ' ],
159+ 'labelField ' => 'id ' ,
160+ ]);
161+ $ Table ->find ('optionsPacked ' , [//Legacy should ignore params check
162+ 'sort ' => ['Notes.note ' => 'ASC ' ],
163+ 'labelField ' => 'id ' ,
164+ ]);
165+ $ Table ->find (
166+ 'optionsPacked ' ,
167+ sort: ['Notes.note ' => 'ASC ' ],
168+ labelField: 'id '
169+ );
170+ $ Table ->find (
171+ 'optionsPacked ' ,
172+ sort: ['Notes.note ' => 'ASC ' ],
173+ labelField: 'id '
174+ );
175+ $ Table ->find ('argsPacked ' );
176+ $ Table ->find (
177+ 'argsPacked ' ,
178+ sort: ['Notes.note ' => 'ASC ' ],
179+ groupLabel: 'type '
180+ );
181+ $ Table ->find ('argsPacked ' , [
182+ 'sort ' => ['Notes.note ' => 'ASC ' ],
183+ 'groupLabel ' => 'id ' ,
184+ ]);
185+ $ Table ->find ('twoArgsButNotLegacy ' , [
186+ 'sort ' => ['Notes.note ' => 'ASC ' ],
187+ 'myType ' => 'featured ' ,
188+ ]);
189+ $ Table ->find ('twoArgsButNotLegacy ' , [
190+ 'sort ' => ['Notes.note ' => 'ASC ' ],
191+ ]);
192+ $ Table ->find (
193+ 'twoArgsButNotLegacy ' ,
194+ sort: ['Notes.note ' => 'ASC ' ],
195+ myType: 'featured '
196+ );
197+ $ Table ->find ('twoArgsButNotLegacy ' );
198+ $ Table ->find (
199+ 'twoArgsButNotLegacy ' ,
200+ sort: ['Notes.note ' => 'ASC ' ],
201+ myType: 19
202+ );
203+ $ field = $ Table ->getTypeTestTwoArgsButNotLegacy ();
204+ $ value = 'featured ' ;
205+ $ Table ->find ('twoArgsButNotLegacy ' , [$ field => $ value ]);
206+ $ Table ->find ('twoArgsButNotLegacy ' , [$ field => 'test ' ]);
207+ $ Table ->find ('twoArgsButNotLegacy ' , [$ Table ->getTypeTestTwoArgsButNotLegacy () => $ value ]);
208+ $ Table ->find ('twoArgsButNotLegacy ' , [$ Table ->getTypeTestTwoArgsButNotLegacy () => 'sample ' ]);
209+ $ Table ->find ('twoArgsButNotLegacy ' , ...[$ field => $ value ]);
210+ $ Table ->find ('twoArgsButNotLegacy ' , ...[$ field => 'test ' ]);
211+ $ Table ->find ('twoArgsButNotLegacy ' , ...[$ Table ->getTypeTestTwoArgsButNotLegacy () => $ value ]);
212+ $ Table ->find ('twoArgsButNotLegacy ' , ...[$ Table ->getTypeTestTwoArgsButNotLegacy () => 'sample ' ]);
141213 }
142214}
0 commit comments