Exemple #1
0
 public function testDoPreUpdate()
 {
     $request = new ContactRequest();
     $updatedAt = new \DateTime();
     $request->setUpdatedAt($updatedAt);
     $request->preUpdate();
     $this->assertNotNull($request->getUpdatedAt());
     $this->assertInstanceOf('DateTime', $request->getUpdatedAt());
     $this->assertNotSame($updatedAt, $request->getUpdatedAt());
 }