Example #1
0
 public function testGetDependenciesWithDependencies()
 {
     $fields = array('field_4' => array('id' => 'section_2/group_3/field_4', 'value' => 'someValue', 'dependPath' => array('section_2', 'group_3', 'field_4')));
     $this->_model->setData(array('depends' => array('fields' => $fields)), 0);
     $this->_depMapperMock->expects($this->once())->method('getDependencies')->with($fields, 'test_scope')->will($this->returnArgument(0));
     $this->assertEquals($fields, $this->_model->getDependencies('test_scope'));
 }