eZ\Publish\Core\Helper\Tests\TranslationHelperTest::getTranslatedField PHP 메소드

getTranslatedField() 공개 메소드

public getTranslatedField ( array $prioritizedLanguages, string $expectedLocale )
$prioritizedLanguages array
$expectedLocale string
    public function getTranslatedField(array $prioritizedLanguages, $expectedLocale)
    {
        $content = $this->generateContent();
        $this->configResolver->expects($this->once())->method('getParameter')->with('languages')->will($this->returnValue($prioritizedLanguages));
        $this->assertSame($this->translatedFields[$expectedLocale], $this->translationHelper->getTranslatedField($content, 'test'));
    }