public function testPrePersist() { $shoppingList = new ShoppingList(); $shoppingList->prePersist(); $this->assertInstanceOf('\\DateTime', $shoppingList->getCreatedAt()); $this->assertInstanceOf('\\DateTime', $shoppingList->getUpdatedAt()); }