Exemplo n.º 1
0
 public function testGetFieldsetIfFieldsetIsEmpty()
 {
     $this->_storageMock->expects($this->once())->method('get')->will($this->returnValue([]));
     $result = $this->_model->getFieldset('test');
     $this->assertEquals(null, $result);
 }
Exemplo n.º 2
0
 /**
  * Get fieldsets by $path
  *
  * @param string $path
  * @return array
  */
 public function getFieldsets($path)
 {
     return $this->_dataStorage->get($path);
 }