eZ\Publish\Core\Repository\Tests\Service\Integration\UrlWildcardTest::testTranslateThrowsNotFoundException PHP Метод

testTranslateThrowsNotFoundException() публичный Метод

Test for the translate() method.
public testTranslateThrowsNotFoundException ( $createArray, $url )
    public function testTranslateThrowsNotFoundException($createArray, $url)
    {
        $mockedService = $this->getPartlyMockedURLWildcardService();
        /** @var \PHPUnit_Framework_MockObject_MockObject $handlerMock */
        $handlerMock = $this->getPersistenceMock()->urlWildcardHandler();
        $handlerMock->expects($this->once())->method('loadAll')->with($this->equalTo(0), $this->equalTo(-1))->will($this->returnValue(array(new SPIURLWildcard($createArray))));
        $mockedService->translate($url);
    }