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

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

Test for the create() method.
    public function testCreateThrowsInvalidArgumentException()
    {
        $mockedService = $this->getPartlyMockedURLWildcardService();
        /** @var \PHPUnit_Framework_MockObject_MockObject $handlerMock */
        $handlerMock = $this->getPersistenceMock()->urlWildcardHandler();
        $repositoryMock = $this->getRepositoryMock();
        $repositoryMock->expects($this->once())->method('hasAccess')->with($this->equalTo('content'), $this->equalTo('urltranslator'))->will($this->returnValue(true));
        $handlerMock->expects($this->once())->method('loadAll')->will($this->returnValue(array(new SPIURLWildcard(array('sourceUrl' => '/lorem/ipsum')))));
        $mockedService->create('/lorem/ipsum', 'opossum', true);
    }