コード例 #1
0
ファイル: DashboardModel.php プロジェクト: ramunasd/platform
 /**
  * Checks if dashboard has widget
  *
  * @param WidgetModel $widgetModel
  * @return bool
  */
 public function hasWidget(WidgetModel $widgetModel)
 {
     return $this->getEntity()->hasWidget($widgetModel->getEntity());
 }
コード例 #2
0
ファイル: WidgetModelTest.php プロジェクト: ramunasd/platform
 public function testSetExpanded()
 {
     $expanded = true;
     $this->widgetState->expects($this->once())->method('setExpanded')->with($expanded);
     $this->widgetModel->setExpanded($expanded);
 }