Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Format\JsonViewHelperTest::viewHelperConvertsSimpleAssociativeArrayGivenAsChildren PHP Method

viewHelperConvertsSimpleAssociativeArrayGivenAsChildren() public method

    public function viewHelperConvertsSimpleAssociativeArrayGivenAsChildren()
    {
        $this->viewHelper->expects($this->once())->method('renderChildren')->will($this->returnValue(array('foo' => 'bar')));
        $actualResult = $this->viewHelper->render();
        $this->assertEquals('{"foo":"bar"}', $actualResult);
    }