/** * @test */ public function hasDescriptionWithDescriptionReturnsTrue() { $this->fixture->setDescription('I agree with the T&C.'); self::assertTrue($this->fixture->hasDescription()); }
/** * Sets the data of a checkbox model based on the data given in $formData. * * @param tx_seminars_Model_Checkbox $checkbox the checkbox model to set the data * @param string $prefix the prefix of the form fields in $formData * @param array[] $formData the form data to use for setting the checkbox data * * @return void */ private static function setCheckboxData(tx_seminars_Model_Checkbox $checkbox, $prefix, array $formData) { $checkbox->setTitle($formData[$prefix . 'title']); }