Neos\FluidAdaptor\Tests\Unit\ViewHelpers\TranslateViewHelperTest::viewHelperTranslatesById PHP Method

viewHelperTranslatesById() public method

    public function viewHelperTranslatesById()
    {
        $this->mockTranslator->expects($this->once())->method('translateById', 'some.label', 'Main', 'TYPO3.Flow', array(), null, $this->dummyLocale)->will($this->returnValue('Translated Label'));
        $result = $this->translateViewHelper->render('some.label', null, array(), 'Main', null, null, 'de_DE');
        $this->assertEquals('Translated Label', $result);
    }