public function testWidgetInstance() { $widget = new Widget('foo_bar', []); $widget->setModule(false); $widgetInstance = Widget::make('foo_bar', [], function ($w) { return $w; }); $this->assertEquals($widget, $widgetInstance); }