public function testWillThrowAnExceptionWhenUserMissing() { $this->request->expects($this->once())->method('getContent')->will($this->returnValue('{}')); $this->getNewResource()->createShortUrl($this->event); }