Neos\FluidAdaptor\Tests\Unit\Core\ViewHelper\AbstractTagBasedViewHelperTest::oneTagAttributeIsRenderedCorrectly PHP Method

oneTagAttributeIsRenderedCorrectly() public method

    public function oneTagAttributeIsRenderedCorrectly()
    {
        $mockTagBuilder = $this->getMockBuilder(TagBuilder::class)->setMethods(array('addAttribute'))->disableOriginalConstructor()->getMock();
        $mockTagBuilder->expects($this->once())->method('addAttribute')->with('foo', 'bar');
        $this->viewHelper->injectTagBuilder($mockTagBuilder);
        $this->viewHelper->_call('registerTagAttribute', 'foo', 'string', 'Description', false);
        $arguments = array('foo' => 'bar');
        $this->viewHelper->setArguments($arguments);
        $this->viewHelper->initialize();
    }