Example #1
0
 public function testSetterAndGetter()
 {
     $setData = 'data';
     $this->model->setMode($setData);
     $this->assertEquals($setData, $this->model->getMode());
     $this->model->setStatus($setData);
     $this->assertEquals($setData, $this->model->getStatus());
     $this->model->setUpdated($setData);
     $this->assertEquals($setData, $this->model->getUpdated());
     $this->model->setVersionId($setData);
     $this->assertEquals($setData, $this->model->getVersionId());
 }
 /**
  * {@inheritdoc}
  */
 public function getMode()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getMode');
     if (!$pluginInfo) {
         return parent::getMode();
     } else {
         return $this->___callPlugins('getMode', func_get_args(), $pluginInfo);
     }
 }