ImboUnitTest\Resource\ShortUrlTest::testThrowsAnExceptionWhenTheShortUrlDoesNotExist PHP Method

testThrowsAnExceptionWhenTheShortUrlDoesNotExist() public method

    public function testThrowsAnExceptionWhenTheShortUrlDoesNotExist()
    {
        $this->request->expects($this->once())->method('getUser')->will($this->returnValue('user'));
        $this->request->expects($this->once())->method('getImageIdentifier')->will($this->returnValue('id'));
        $this->route->expects($this->once())->method('get')->with('shortUrlId')->will($this->returnValue('aaaaaaa'));
        $this->database->expects($this->once())->method('getShortUrlParams')->with('aaaaaaa')->will($this->returnValue(null));
        $this->getNewResource()->deleteShortUrl($this->event);
    }