Neos\Flow\Tests\Unit\Mvc\View\AbstractViewTest::assignMultipleCanOverridePreviouslyAssignedValues PHP Méthode

assignMultipleCanOverridePreviouslyAssignedValues() public méthode

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