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