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

testCreateLocationThrowsInvalidArgumentExceptionLocationExistsBelowParent() public method

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