public function testShown() { $date = new \DateTime(); $this->notice->setDateClosed($date); $this->notice->shown(); $this->assertEquals($date, $this->notice->getDateClosed()); $this->assertEquals(Notice::STATUS_SHOWN, $this->notice->getStatus()); }