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

assignMultipleAddsValuesToInternalVariableCollection() public method

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