/** * @test */ public function setTitleSetsTitle() { $this->fixture->setTitle('Housewives'); self::assertEquals('Housewives', $this->fixture->getTitle()); }
/** * Sets the data of a target group model based on the data given in * $formData. * * @param tx_seminars_Model_TargetGroup $targetGroup * the target group 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 target group data * * @return void */ private static function setTargetGroupData(tx_seminars_Model_TargetGroup $targetGroup, $prefix, array $formData) { $targetGroup->setTitle($formData[$prefix . 'title']); $targetGroup->setMinimumAge((int) $formData[$prefix . 'minimum_age']); $targetGroup->setMaximumAge((int) $formData[$prefix . 'maximum_age']); }