コード例 #1
0
ファイル: DashboardTest.php プロジェクト: Maksold/platform
 public function testLabel()
 {
     $this->assertNull($this->dashboard->getLabel());
     $value = 'test';
     $this->assertEquals($this->dashboard, $this->dashboard->setLabel($value));
     $this->assertEquals($value, $this->dashboard->getLabel());
 }
コード例 #2
0
ファイル: DashboardModel.php プロジェクト: ramunasd/platform
 /**
  * Get dashboard label
  *
  * @return string
  */
 public function getLabel()
 {
     $label = $this->entity->getLabel();
     return $label ? $label : (isset($this->config['label']) ? $this->config['label'] : '');
 }