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());
 }
Esempio n. 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());
 }