Esempio n. 1
0
 public function testCreateQueryPostPlugin()
 {
     $type = Solarium_Client::QUERYTYPE_SELECT;
     $options = array('optionA' => 1, 'optionB' => 2);
     $query = $this->_client->createQuery($type, $options);
     $observer = $this->getMock('Solarium_Plugin_Abstract', array(), array($this->_client, array()));
     $observer->expects($this->once())->method('postCreateQuery')->with($this->equalTo($type), $this->equalTo($options), $this->equalTo($query));
     $this->_client->registerPlugin('testplugin', $observer);
     $this->_client->createQuery($type, $options);
 }