*/ class OptionsTraitTest extends \oat\search\test\UnitTestHelper { protected $instance; public function setup() { $this->instance = $this->getMockForTrait('\\oat\\search\\UsableTrait\\OptionsTrait'); } /** * test sort and getSort */ public function testgetSetOptions() { $fixtureOptions = [ 'option1' => true, 'option2' => false, ]; $this->assertSame($this->instance, $this->instance->setOptions($fixtureOptions)); $this->assertSame($fixtureOptions, $this->instance->getOptions()); } }