Пример #1
0
 public function testRemove()
 {
     $widgetEntity = $this->getMock('Oro\\Bundle\\DashboardBundle\\Entity\\Widget');
     $widgetModel = $this->getMock('Oro\\Bundle\\DashboardBundle\\Model\\EntityModelInterface');
     $widgetModel->expects($this->once())->method('getEntity')->will($this->returnValue($widgetEntity));
     $this->entityManager->expects($this->once())->method('remove')->with($widgetEntity);
     $this->manager->remove($widgetModel);
 }