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