FluidTYPO3\Flux\Tests\Unit\Form\AbstractFormTest::canUseShorthandLanguageLabel PHP Метод

canUseShorthandLanguageLabel() публичный Метод

    public function canUseShorthandLanguageLabel()
    {
        $className = $this->getObjectClassName();
        $instance = $this->getMock($className, array('getExtensionKey', 'getName', 'getRoot'));
        $instance->expects($this->never())->method('getExtensionKey');
        $instance->expects($this->any())->method('getRoot')->will($this->returnValue(NULL));
        $instance->expects($this->once())->method('getName')->will($this->returnValue('form'));
        $instance->setLabel('LLL:tt_content.tx_flux_container');
        $result = $instance->getLabel();
        $this->assertSame('LLL:EXT:flux/Resources/Private/Language/locallang.xlf:tt_content.tx_flux_container', $result);
    }