/** * @covers Applications\Entity\Application::addReadBy */ public function testAddReadByWithUser() { $user = new User(); $user->setId(123); $this->target->addReadBy($user); $this->assertEquals(false, $this->target->isUnReadBy($user)); $this->assertEquals(true, $this->target->isReadBy($user)); }