public function testContentOrCombinatorFilter() { $locator = $this->getContentSearchHandler(); $result = $locator->findContent(new Query(array('filter' => new Criterion\LogicalOr(array(new Criterion\ContentId(array(1, 4, 10)), new Criterion\ContentId(array(4, 12)))), 'limit' => 10))); $expectedContentIds = array(4, 10, 12); $this->assertEquals(count($expectedContentIds), count($result->searchHits)); foreach ($result->searchHits as $hit) { $this->assertContains($hit->valueObject->id, $expectedContentIds); } }