public function testGetPathIds()
 {
     $this->assertEquals([''], $this->_model->getPathIds());
     $this->_model->setPathIds([1]);
     $this->assertEquals([1], $this->_model->getPathIds());
     $this->_model->unsetData();
     $this->_model->setPath('1/2/3');
     $this->assertEquals([1, 2, 3], $this->_model->getPathIds());
 }
Exemple #2
0
 public function testGetPathIds()
 {
     $this->assertEquals(array(''), $this->_model->getPathIds());
     $this->_model->setPathIds(array(1));
     $this->assertEquals(array(1), $this->_model->getPathIds());
     $this->_model->unsetData();
     $this->_model->setPath('1/2/3');
     $this->assertEquals(array(1, 2, 3), $this->_model->getPathIds());
 }
 /**
  * {@inheritdoc}
  */
 public function setPath($path)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setPath');
     if (!$pluginInfo) {
         return parent::setPath($path);
     } else {
         return $this->___callPlugins('setPath', func_get_args(), $pluginInfo);
     }
 }