コード例 #1
0
ファイル: DisMaxTest.php プロジェクト: rmzamora/solarium
 public function testAddBoostQueryWithUsedKey()
 {
     $bq1 = new BoostQuery();
     $bq1->setKey('bq1')->setQuery('category:1');
     $bq2 = new BoostQuery();
     $bq2->setKey('bq1')->setQuery('category:2');
     $this->disMax->addBoostQuery($bq1);
     $this->setExpectedException('Solarium\\Exception\\InvalidArgumentException');
     $this->disMax->addBoostQuery($bq2);
 }