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