public function testDashboardEvent()
 {
     $viewModel = new ViewModel();
     $dashboardEvent = new DashboardEvent();
     $dashboardEvent->setDashboardViewModel($viewModel);
     $this->assertSame($viewModel, $dashboardEvent->getDashboardViewModel());
 }
 /**
  * 
  * @param ViewModel $viewModel
  * @return DashboardEvent
  */
 private function triggerDashboardRenderEvent(ViewModel $viewModel)
 {
     $event = new DashboardEvent();
     $event->setName(DashboardEvent::DASHBOARD_RENDER_EVENT);
     $event->setDashboardViewModel($viewModel);
     $event->setTarget($this);
     $this->getEventManager()->trigger($event);
     return $event;
 }