public function save() { $value = $this->getRequest()->getPost()->get($this->getName()); $this->setValue($value); }
/** * Test * * @return void */ public function testSave() { $this->object->getRequest()->getPost()->set($this->object->getName(), '1'); $this->object->save(); $this->assertEquals('1', $this->object->getValue()); }