public function testShownModify() { $date = (new \DateTime())->modify('+' . $this->notice->getLifetime() . ' seconds'); $this->notice->shown(); $this->assertEquals($date, $this->notice->getDateClosed()); $this->assertEquals(Notice::STATUS_SHOWN, $this->notice->getStatus()); }