/** * @test */ public function aWidgetConfigurationIsReturnedWhenContextIsSerialized() { $this->widgetContext->setNonAjaxWidgetConfiguration(array('key' => 'value')); $this->widgetContext->setAjaxWidgetConfiguration(array('keyAjax' => 'valueAjax')); $this->widgetContext = serialize($this->widgetContext); $this->widgetContext = unserialize($this->widgetContext); $this->assertEquals(array('keyAjax' => 'valueAjax'), $this->widgetContext->getWidgetConfiguration()); }