Example #1
0
 public function testNotMerged()
 {
     $query = new Simples_Request_Search_Builder_Query();
     $query->must()->match('scharrier')->in(array('username', 'retweet'))->field('category_id')->match(array('1', '2', '3'))->not()->field('type')->match('administreur');
     $res = $query->to('array');
     $this->assertEquals(2, count($res['bool']['must']));
     $this->assertEquals(1, count($res['bool']['must_not']));
 }