/** * Test getter/setter for label property */ public function testGetSetLabel() { $newCode = 'code'; $expectedCode = '[' . $newCode . ']'; $this->type->setCode($newCode); $this->assertEquals($expectedCode, $this->type->getLabel()); $newLabel = 'test-label'; $this->assertEntity($this->type->setLocale('en_US')); $this->assertEntity($this->type->setLabel($newLabel)); $this->assertEquals($newLabel, $this->type->getLabel()); $this->type->setLocale('fr_FR'); $this->assertEquals($expectedCode, $this->type->getLabel()); $this->type->setLabel(''); $this->assertEquals($expectedCode, $this->type->getLabel()); }
/** * {@inheritDoc} */ public function getLabel() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLabel', array()); return parent::getLabel(); }