/**
  * Stores the WidgetContext inside the Context, and sets the
  * AjaxWidgetIdentifier inside the Widget Context correctly.
  *
  * @param Tx_Fluid_Core_Widget_WidgetContext $widgetContext
  * @return void
  * @author Sebastian Kurfürst <*****@*****.**>
  */
 public function store(Tx_Fluid_Core_Widget_WidgetContext $widgetContext)
 {
     $ajaxWidgetId = md5(uniqid(mt_rand(), TRUE));
     $widgetContext->setAjaxWidgetIdentifier($ajaxWidgetId);
     $this->widgetContexts[$ajaxWidgetId] = $widgetContext;
     $this->storeWidgetContexts();
 }
 /**
  * @test
  * @author Sebastian Kurfürst <*****@*****.**>
  */
 public function ajaxWidgetIdentifierCanBeReadAgain()
 {
     $this->widgetContext->setAjaxWidgetIdentifier(42);
     $this->assertEquals(42, $this->widgetContext->getAjaxWidgetIdentifier());
 }