@@ 179-194 (lines=16) @@ | ||
176 | /* |
|
177 | * Test searchCriteria. |
|
178 | */ |
|
179 | public function testSearchCriteria() |
|
180 | { |
|
181 | $this |
|
182 | ->given($datasource = $this->randomDataSource()) |
|
183 | ->then |
|
184 | ->variable($datasource->searchCriteria()) |
|
185 | ->isNull() |
|
186 | ->given( |
|
187 | $searchCriteria = Criteria::false(), |
|
188 | $datasource = $this->randomDataSource($searchCriteria) |
|
189 | ) |
|
190 | ->then |
|
191 | ->variable($datasource->searchCriteria()) |
|
192 | ->isEqualTo($searchCriteria) |
|
193 | ; |
|
194 | } |
|
195 | ||
196 | /* |
|
197 | * Test sortCriteria. |
|
@@ 199-214 (lines=16) @@ | ||
196 | /* |
|
197 | * Test sortCriteria. |
|
198 | */ |
|
199 | public function testSortCriteria() |
|
200 | { |
|
201 | $this |
|
202 | ->given($datasource = $this->randomDataSource()) |
|
203 | ->then |
|
204 | ->variable($datasource->sortCriteria()) |
|
205 | ->isNull() |
|
206 | ->given( |
|
207 | $sortCriteria = new Comparator(), |
|
208 | $datasource = $this->randomDataSource(null, $sortCriteria) |
|
209 | ) |
|
210 | ->then |
|
211 | ->variable($datasource->sortCriteria()) |
|
212 | ->isEqualTo($sortCriteria) |
|
213 | ; |
|
214 | } |
|
215 | ||
216 | /* |
|
217 | * Test isSorted. |