/** * Checks if dashboard has widget * * @param WidgetModel $widgetModel * @return bool */ public function hasWidget(WidgetModel $widgetModel) { return $this->getEntity()->hasWidget($widgetModel->getEntity()); }
public function testSetExpanded() { $expanded = true; $this->widgetState->expects($this->once())->method('setExpanded')->with($expanded); $this->widgetModel->setExpanded($expanded); }