eZ\Publish\Core\Repository\Tests\Service\Integration\NameSchemaBase::testResolveWithSettings PHP Method

testResolveWithSettings() public method

Test eZ\Publish\Core\Repository\Helper\NameSchemaService method.
    public function testResolveWithSettings()
    {
        $service = $this->repository->getNameSchemaService();
        $this->setConfiguration($service, array('limit' => 38, 'sequence' => '...'));
        list($content, $contentType) = $this->buildTestObjects();
        $name = $service->resolve('Hello, <text1> and <text2> and then goodbye and hello again', $contentType, $content->fields, $content->versionInfo->languageCodes);
        self::assertEquals(array('eng-GB' => 'Hello, one and two and then goodbye...', 'cro-HR' => 'Hello, jedan and dva and then goodb...'), $name);
    }