_command = new Solarium_Query_Update_Command_Commit; } public function testGetType() { $this->assertEquals( Solarium_Query_Update::COMMAND_COMMIT, $this->_command->getType() ); } public function testConfigMode() { $options = array( 'waitflush' => true, 'waitsearcher' => false, 'expungedeletes' => true, ); $command = new Solarium_Query_Update_Command_Commit($options); $this->assertEquals( true, $command->getWaitFlush() ); $this->assertEquals( false, $command->getWaitSearcher() ); $this->assertEquals( true, $command->getExpungeDeletes() ); } public function testGetAndSetWaitFlush() { $this->_command->setWaitFlush(false); $this->assertEquals( false, $this->_command->getWaitFlush() ); } public function testGetAndSetWaitSearcher() { $this->_command->setWaitSearcher(false); $this->assertEquals( false, $this->_command->getWaitSearcher() ); } public function testGetAndSetExpungeDeletes() { $this->_command->setExpungeDeletes(true); $this->assertEquals( true, $this->_command->getExpungeDeletes() ); } }