예제 #1
0
 public function testBeforeUpdate()
 {
     $this->item->beforeUpdate();
     $date = new \DateTime('now', new \DateTimeZone('UTC'));
     $updatedAt = $this->item->getUpdatedAt();
     $this->assertEquals($date->format('Y-m-d'), $updatedAt->format('Y-m-d'));
 }