eZ\Publish\Core\Repository\Tests\Service\Integration\LocationBase::testCreateLocationThrowsInvalidArgumentExceptionExistingRemoteId PHP Method

testCreateLocationThrowsInvalidArgumentExceptionExistingRemoteId() public method

Test creating a location throwing InvalidArgumentException.
    public function testCreateLocationThrowsInvalidArgumentExceptionExistingRemoteId()
    {
        $locationService = $this->repository->getLocationService();
        $contentService = $this->repository->getContentService();
        $locationCreateStruct = $locationService->newLocationCreateStruct(2);
        $locationCreateStruct->remoteId = '769380b7aa94541679167eab817ca893';
        $contentInfo = $contentService->loadContentInfo(4);
        $locationService->createLocation($contentInfo, $locationCreateStruct);
    }