public function itThrowsAnExceptionWhenReturningValueIndexedByFieldName()
 {
     $field = new Tracker_FormElement_Field_PermissionsOnArtifact(1, 101, null, 'field_perms_on_artifact', 'Field Perms On Artifact', '', 1, 'P', true, '', 1);
     $this->expectException('Tracker_FormElement_RESTValueByField_NotImplementedException');
     $value = 'some_value';
     $field->getFieldDataFromRESTValueByField($value);
 }
Esempio n. 2
0
 public function testVisitPermissionsOnArtifact()
 {
     $visitor = new Tracker_FormElement_View_Admin_Visitor(array());
     $formElement = new Tracker_FormElement_Field_PermissionsOnArtifact(null, null, null, null, null, null, null, null, null, null, null, null);
     $formElement->accept($visitor);
     $this->assertIsA($visitor->getAdmin(), 'Tracker_FormElement_View_Admin_Field_PermissionsOnArtifact');
 }