public function testDoChangeDateUpdate() { $date = (new \DateTime())->modify('+100 seconds'); $this->item->setDateUpdate($date); $this->item->doChangeDateUpdate(); $this->assertInstanceOf('\\DateTime', $this->item->getDateUpdate()); $this->assertNotEquals($date, $this->item->getDateUpdate()); }