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'));
 }
 public function testDeleteWithoutArchiveDoesNotCreateArchive()
 {
     $a = new ArchivableTest10();
     $a->setTitle('foo');
     $a->setAge(12);
     $a->save();
     ArchivableTest10ArchiveQuery::create()->deleteAll();
     $a->deleteWithoutArchive();
     $this->assertEquals(0, ArchivableTest10ArchiveQuery::create()->count());
 }