public function testGetLabel() { $id = 123; $label = 'Reopen'; $description = 'The artifact has been re-opened'; $rank = 200; $is_hidden = 0; $bv = new Tracker_FormElement_Field_List_Bind_StaticValue($id, $label, $description, $rank, $is_hidden); $this->assertEqual($bv->getLabel(), $label); }
/** * * @param int $id * @param string $label * @param string $description * @param int $rank * @param bool $is_hidden */ public function __construct() { $id = self::VALUE_ID; $label = $GLOBALS['Language']->getText('global', 'none'); $description = ''; $rank = 0; $is_hidden = false; parent::__construct($id, $label, $description, $rank, $is_hidden); }
/** * Say if a value can be deleted * * @param Tracker_FormElement_Field_List_Bind_StaticValue $value the value * * @return boolean true if the value can be deleted */ public function canValueBeDeleted(Tracker_FormElement_Field_List_Bind_StaticValue $value) { return $this->getValueDao()->canValueBeDeleted($this->field->id, $value->getId()); }