Exemplo n.º 1
0
 public function testGetSectionId()
 {
     $this->_model->setData(['id' => 'fieldId', 'path' => 'sectionId/groupId/subgroupId'], 'scope');
     $this->assertEquals('sectionId', $this->_model->getSectionId());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getSectionId()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getSectionId');
     if (!$pluginInfo) {
         return parent::getSectionId();
     } else {
         return $this->___callPlugins('getSectionId', func_get_args(), $pluginInfo);
     }
 }