Beispiel #1
0
 public function testSharedUsageShouldDisplayAllTrackershatShareMe()
 {
     $element = $this->GivenAnElementWithManyCopies();
     $admin = new Tracker_FormElement_View_Admin($element, array());
     $content = $admin->fetchSharedUsage();
     $this->assertPattern('/Canard/', $content);
     $this->assertPattern('/Saucisse/', $content);
 }
Beispiel #2
0
 /**
  * If the formElement has specific properties then this method 
  * should return the html needed to update those properties
  * 
  * The html must be a (or many) html row(s) table (one column for the label, 
  * another one for the property)
  * 
  * <code>
  * <tr><td><label>Property 1:</label></td><td><input type="text" value="value 1" /></td></tr>
  * <tr><td><label>Property 2:</label></td><td><input type="text" value="value 2" /></td></tr>
  * </code>
  * 
  * @return string html
  */
 public function fetchAdminSpecificProperties()
 {
     $html = '';
     //required
     $html .= $this->fetchRequired();
     //notifications
     $html .= $this->fetchNotifications();
     $html .= parent::fetchAdminSpecificProperties();
     return $html;
 }