/** * Tests the getOptions method. */ public function testSetOptions() { $superCategory = $this->optionService->getOptions(); $categories = $superCategory->getCategories(); $firstCategory = $categories[0]; $options = $firstCategory->getOptions(); $firstOption = $options[0]; $firstOption->setValue(false); $this->optionService->setOptions($superCategory); $testOption = $this->optionService->get('twomartens.core', 'optionOne'); $this->assertFalse($testOption->getValue()); }