Ejemplo n.º 1
0
 public function testStartDashboard()
 {
     $this->assertNull($this->dashboard->getOwner());
     $value = $this->getMock('Oro\\Bundle\\DashboardBundle\\Entity\\Dashboard');
     $this->assertEquals($this->dashboard, $this->dashboard->setStartDashboard($value));
     $this->assertEquals($value, $this->dashboard->getStartDashboard());
 }
Ejemplo n.º 2
0
 /**
  * Get dashboard owner
  *
  * @return User
  */
 public function getOwner()
 {
     return $this->entity->getOwner();
 }