コード例 #1
0
ファイル: DashboardTest.php プロジェクト: Maksold/platform
 public function testOrganization()
 {
     $this->assertNull($this->dashboard->getOrganization());
     $value = $this->getMock('Oro\\Bundle\\OrganizationBundle\\Entity\\Organization');
     $this->assertEquals($this->dashboard, $this->dashboard->setOrganization($value));
     $this->assertEquals($value, $this->dashboard->getOrganization());
 }
コード例 #2
0
ファイル: DashboardModel.php プロジェクト: ramunasd/platform
 /**
  * Get dashboard organization
  *
  * @return User
  */
 public function getOrganization()
 {
     return $this->entity->getOrganization();
 }