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