ImboUnitTest\Resource\GlobalShortUrlTest::testRespondsWith404WhenShortUrlDoesNotExist PHP Method

testRespondsWith404WhenShortUrlDoesNotExist() public method

    public function testRespondsWith404WhenShortUrlDoesNotExist()
    {
        $route = $this->getMock('Imbo\\Router\\Route');
        $route->expects($this->once())->method('get')->with('shortUrlId')->will($this->returnValue('aaaaaaa'));
        $this->request->expects($this->once())->method('getRoute')->will($this->returnValue($route));
        $this->database->expects($this->once())->method('getShortUrlParams')->with('aaaaaaa')->will($this->returnValue(null));
        $this->resource->getImage($this->event);
    }