Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Form\SubmitViewHelperTest::renderCorrectlySetsTagNameAndDefaultAttributes PHP Метод

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

    public function renderCorrectlySetsTagNameAndDefaultAttributes()
    {
        $mockTagBuilder = $this->getMockBuilder(\TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder::class)->setMethods(array('setTagName', 'addAttribute'))->getMock();
        $mockTagBuilder->expects($this->any())->method('setTagName')->with('input');
        $mockTagBuilder->expects($this->at(2))->method('addAttribute')->with('type', 'submit');
        $this->viewHelper->injectTagBuilder($mockTagBuilder);
        $this->viewHelper->initialize();
        $this->viewHelper->render();
    }