_query = new Solarium_Query_Suggester; } public function testGetType() { $this->assertEquals(Solarium_Client::QUERYTYPE_SUGGESTER, $this->_query->getType()); } public function testSetAndGetQuery() { $value = 'testquery'; $this->_query->setQuery($value); $this->assertEquals( $value, $this->_query->getQuery() ); } public function testSetAndGetDictionary() { $value = 'myDictionary'; $this->_query->setDictionary($value); $this->assertEquals( $value, $this->_query->getDictionary() ); } public function testSetAndGetCount() { $value = 11; $this->_query->setCount($value); $this->assertEquals( $value, $this->_query->getCount() ); } public function testSetAndGetOnlyMorePopular() { $value = false; $this->_query->setOnlyMorePopular($value); $this->assertEquals( $value, $this->_query->getOnlyMorePopular() ); } public function testSetAndGetCollate() { $value = false; $this->_query->setCollate($value); $this->assertEquals( $value, $this->_query->getCollate() ); } }