/** * Test text converter */ public function testConvertPart2() { $this->markTestIncomplete('do not use minutes'); $model = new Minutes_Models_Minutes(); $order = Phprojekt_ModelInformation_Default::ORDERING_FORM; $fieldDefinition = $model->getInformation()->getFieldDefinition($order); $model->title = 'test'; $model->projectId = 1; $model->meetingDatetime = '2009-05-12 11:00:00'; $model->endTime = '12:00:00'; foreach ($fieldDefinition as $info) { // Time if ($info['key'] == 'endTime') { $value = Phprojekt_Converter_Text::convert($model, $info); $this->assertEquals('12:00', $value); } } }
/** * Test multipleValues */ public function testArray() { $this->markTestSkipped('Do not use Minute model outside of Minutes test'); $item = new Minutes_Models_Minutes(array('db' => $this->sharedFixture)); $item->participantsInvited = array(1, 2, 3); $this->assertEquals(array(), $item->getError()); $this->assertEquals('1,2,3', $item->participantsInvited); }
/** * Test multipleValues */ public function testArray() { $item = new Minutes_Models_Minutes(array('db' => $this->sharedFixture)); $item->participantsInvited = array(1, 2, 3); $this->assertEquals(array(), $item->getError()); $this->assertEquals('1,2,3', $item->participantsInvited); }