Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Form\RadioViewHelperTest::renderIgnoresBoundPropertyIfCheckedIsSet PHP Метод

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

    public function renderIgnoresBoundPropertyIfCheckedIsSet()
    {
        $this->mockTagBuilder->expects($this->at(2))->method('addAttribute')->with('type', 'radio');
        $this->mockTagBuilder->expects($this->at(3))->method('addAttribute')->with('name', 'foo');
        $this->mockTagBuilder->expects($this->at(4))->method('addAttribute')->with('value', 'bar');
        $this->viewHelper->expects($this->any())->method('getName')->will($this->returnValue('foo'));
        $this->viewHelper->expects($this->any())->method('getValueAttribute')->will($this->returnValue('bar'));
        $this->viewHelper->expects($this->any())->method('isObjectAccessorMode')->will($this->returnValue(true));
        $this->viewHelper->expects($this->any())->method('getPropertyValue')->will($this->returnValue('propertyValue'));
        $this->viewHelper->injectTagBuilder($this->mockTagBuilder);
        $this->viewHelper->initialize();
        $this->viewHelper->render(true);
        $this->viewHelper->render(false);
    }