Beispiel #1
0
 /**
  * Create a group containing two fields, "visibleField" and "hiddenField"
  *
  * @return FieldGroup
  */
 protected function getGroupWithBothVisibleAndHiddenField()
 {
     $group = new TestFieldGroup('testGroup');
     // add a visible field
     $visibleField = $this->createMockField('visibleField');
     $visibleField->expects($this->once())->method('isHidden')->will($this->returnValue(false));
     $group->add($visibleField);
     // add a hidden field
     $hiddenField = $this->createMockField('hiddenField');
     $hiddenField->expects($this->once())->method('isHidden')->will($this->returnValue(true));
     $group->add($hiddenField);
     return $group;
 }