public function testArchiveSetArchivedAtToTheCurrentTime() { $a = new ArchivableTest10(); $a->setTitle('foo'); $a->save(); $ret = $a->archive(); // time without seconds $this->assertEquals(date('Y-m-d H:i'), $ret->getArchivedAt('Y-m-d H:i')); }
/** * @expectedException PropelException */ public function testArchiveThrowsExceptionOnNewObjects() { $a = new ArchivableTest10(); $a->archive(); }