Commit 884ec0cb authored by Robert Elwell's avatar Robert Elwell

Write test for changes to Solarium_Query_Select_Component_Spellcheck

parent f096d48b
......@@ -189,4 +189,21 @@ class Solarium_Query_Select_Component_SpellcheckTest extends PHPUnit_Framework_T
$this->_spellCheck->getAccuracy()
);
}
public function testSetAndGetCollateParams()
{
$this->assertEquals(
$this->_spellCheck,
$this->_spellCheck->setCollateParam('mm', '100%')
);
$params = $this->_spellCheck->getCollateParams();
$this->assertArrayHasKey(
'mm',
$params
);
$this->assertEquals(
'100%',
$params['mm']
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment