public function testLabel() { $this->assertNull($this->dashboard->getLabel()); $value = 'test'; $this->assertEquals($this->dashboard, $this->dashboard->setLabel($value)); $this->assertEquals($value, $this->dashboard->getLabel()); }
/** * Get dashboard label * * @return string */ public function getLabel() { $label = $this->entity->getLabel(); return $label ? $label : (isset($this->config['label']) ? $this->config['label'] : ''); }