コード例 #1
0
ファイル: AdminTest.php プロジェクト: pombredanne/tuleap
 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);
 }
コード例 #2
0
ファイル: Field.class.php プロジェクト: nterray/tuleap
 /**
  * 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;
 }