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

testCreateLocationThrowsInvalidArgumentExceptionParentIsASubLocation() public method

Test creating a location throwing InvalidArgumentException.
    public function testCreateLocationThrowsInvalidArgumentExceptionParentIsASubLocation()
    {
        $locationService = $this->repository->getLocationService();
        $contentService = $this->repository->getContentService();
        $locationCreateStruct = $locationService->newLocationCreateStruct(44);
        $contentInfo = $contentService->loadContentInfo(4);
        $locationService->createLocation($contentInfo, $locationCreateStruct);
    }