예제 #1
0
 public function testBeforeSave()
 {
     $entity = new Email();
     $entity->beforeSave();
     $createdAt = new \DateTime('now', new \DateTimeZone('UTC'));
     $this->assertEquals(Email::NORMAL_IMPORTANCE, $entity->getImportance());
     $this->assertGreaterThanOrEqual($createdAt, $entity->getCreated());
 }