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

testNewLocationCreateStruct() public method

Test creating new LocationCreateStruct.
    public function testNewLocationCreateStruct()
    {
        $locationService = $this->repository->getLocationService();
        $locationCreateStruct = $locationService->newLocationCreateStruct(2);
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\Content\\LocationCreateStruct', $locationCreateStruct);
        $this->assertPropertiesCorrect(array('priority' => 0, 'hidden' => false, 'remoteId' => null, 'sortField' => Location::SORT_FIELD_NAME, 'sortOrder' => Location::SORT_ORDER_ASC, 'parentLocationId' => 2), $locationCreateStruct);
    }