@@ 274-283 (lines=10) @@ | ||
271 | } |
|
272 | ||
273 | ||
274 | public function testSearchItemsBaseCriteria() |
|
275 | { |
|
276 | $search = $this->object->createSearch(true); |
|
277 | $conditions = array( |
|
278 | $search->compare( '==', 'customer.lists.editor', $this->editor ), |
|
279 | $search->getConditions() |
|
280 | ); |
|
281 | $search->setConditions( $search->combine( '&&', $conditions ) ); |
|
282 | $this->assertEquals( 4, count( $this->object->searchItems($search) ) ); |
|
283 | } |
|
284 | ||
285 | ||
286 | public function testGetSubManager() |
@@ 232-241 (lines=10) @@ | ||
229 | } |
|
230 | ||
231 | ||
232 | public function testSearchItemsCriteria() |
|
233 | { |
|
234 | $search = $this->object->createSearch( true ); |
|
235 | $conditions = array( |
|
236 | $search->compare( '==', 'customer.address.editor', $this->editor ), |
|
237 | $search->getConditions() |
|
238 | ); |
|
239 | $search->setConditions( $search->combine( '&&', $conditions ) ); |
|
240 | $this->assertEquals( 2, count( $this->object->searchItems( $search, [], $total ) ) ); |
|
241 | } |
|
242 | ||
243 | ||
244 | public function testSearchItemsRef() |