Neos\Flow\Tests\Unit\Mvc\View\AbstractViewTest::assignAddsValueToInternalVariableCollection PHP Method

assignAddsValueToInternalVariableCollection() public method

    public function assignAddsValueToInternalVariableCollection()
    {
        $view = $this->getAccessibleMock(Mvc\View\AbstractView::class, ['setControllerContext', 'render']);
        $view->assign('foo', 'FooValue')->assign('bar', 'BarValue');
        $expectedResult = ['foo' => 'FooValue', 'bar' => 'BarValue'];
        $actualResult = $view->_get('variables');
        $this->assertEquals($expectedResult, $actualResult);
    }