Example #1
0
 public function testPreUpdate()
 {
     $category = new Category();
     $category->preUpdate();
     $this->assertInstanceOf('DateTime', $category->getUpdatedAt());
     $this->assertLessThanOrEqual(new \DateTime(), $category->getUpdatedAt());
 }