Example #1
0
 public function testBeforeSave()
 {
     $timeStamp = '0000';
     $this->dateTimeMock->expects($this->exactly(2))->method('formatDate')->will($this->returnValue($timeStamp));
     $this->integrationModel->beforeSave();
     $this->assertEquals($timeStamp, $this->integrationModel->getCreatedAt());
     $this->assertEquals($timeStamp, $this->integrationModel->getUpdatedAt());
 }