FluidTYPO3\Flux\Tests\Unit\ViewHelpers\AbstractFormViewHelperTestCase::canGetContainerInstanceFromTemplateVariables PHP Метод

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

    public function canGetContainerInstanceFromTemplateVariables()
    {
        $sheet = Form\Container\Sheet::create();
        $instance = $this->createMockedInstanceForVariableContainerTests();
        $this->viewHelperVariableContainer->expects($this->any())->method('exists')->will($this->returnValue(FALSE));
        $this->templateVariableContainer->expects($this->any())->method('exists')->will($this->returnValue(TRUE));
        $this->templateVariableContainer->expects($this->any())->method('get')->will($this->returnValue($sheet));
        $output = $this->callInaccessibleMethod($instance, 'getContainer');
        $this->assertSame($sheet, $output);
    }