function let(FunctionInvoker $functionInvoker, Widget $widget)
 {
     $functionCreator = new FunctionCreator();
     $functionWrapper = new FunctionWrapper($functionCreator, $functionInvoker->getWrappedObject());
     $this->beConstructedWith($functionWrapper);
     $widget->getSlug()->willReturn('my-widget');
     $widget->getTitle()->willReturn('My Widget');
     $widget->render()->willReturn('<p>My Widget</p>');
 }
 public function addSideWidget(Widget $widget)
 {
     $this->functions->invoke('add_meta_box', [$widget->getSlug(), $widget->getTitle(), $this->functions->create(array($widget, 'render')), 'dashboard']);
 }