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