/** * @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()); }
/** * @test */ public function widgetConfigurationCanBeReadAgain() { $this->widgetContext->setWidgetConfiguration(array('key' => 'value')); $this->assertEquals(array('key' => 'value'), $this->widgetContext->getWidgetConfiguration()); }