_spellCheck = new Solarium_Query_Select_Component_Spellcheck; } public function testGetType() { $this->assertEquals(Solarium_Query_Select::COMPONENT_SPELLCHECK, $this->_spellCheck->getType()); } public function testSetAndGetQuery() { $value = 'testquery'; $this->_spellCheck->setQuery($value); $this->assertEquals( $value, $this->_spellCheck->getQuery() ); } public function testSetAndGetBuild() { $value = true; $this->_spellCheck->setBuild($value); $this->assertEquals( $value, $this->_spellCheck->getBuild() ); } public function testSetAndGetReload() { $value = false; $this->_spellCheck->setReload($value); $this->assertEquals( $value, $this->_spellCheck->getReload() ); } public function testSetAndGetDictionary() { $value = 'myDictionary'; $this->_spellCheck->setDictionary($value); $this->assertEquals( $value, $this->_spellCheck->getDictionary() ); } public function testSetAndGetCount() { $value = 11; $this->_spellCheck->setCount($value); $this->assertEquals( $value, $this->_spellCheck->getCount() ); } public function testSetAndGetOnlyMorePopular() { $value = false; $this->_spellCheck->setOnlyMorePopular($value); $this->assertEquals( $value, $this->_spellCheck->getOnlyMorePopular() ); } public function testSetAndGetExtendedResults() { $value = false; $this->_spellCheck->setExtendedResults($value); $this->assertEquals( $value, $this->_spellCheck->getExtendedResults() ); } public function testSetAndGetCollate() { $value = false; $this->_spellCheck->setCollate($value); $this->assertEquals( $value, $this->_spellCheck->getCollate() ); } public function testSetAndGetMaxCollations() { $value = 23; $this->_spellCheck->setMaxCollations($value); $this->assertEquals( $value, $this->_spellCheck->getMaxCollations() ); } public function testSetAndGetMaxCollationTries() { $value = 10; $this->_spellCheck->setMaxCollationTries($value); $this->assertEquals( $value, $this->_spellCheck->getMaxCollationTries() ); } public function testSetAndGetMaxCollationEvaluations() { $value = 10; $this->_spellCheck->setMaxCollationEvaluations($value); $this->assertEquals( $value, $this->_spellCheck->getMaxCollationEvaluations() ); } public function testSetAndGetCollateExtendedResults() { $value = true; $this->_spellCheck->setCollateExtendedResults($value); $this->assertEquals( $value, $this->_spellCheck->getCollateExtendedResults() ); } public function testSetAndGetAccuracy() { $value = .1; $this->_spellCheck->setAccuracy($value); $this->assertEquals( $value, $this->_spellCheck->getAccuracy() ); } }