/** * @covers ::set * @covers ::get */ public function testGet() { $name = 'id'; $value = $this->randomMachineName(); $this->assertSame($this->id, $this->entity->get($name)); $this->assertSame($this->entity, $this->entity->set($name, $value)); $this->assertSame($value, $this->entity->get($name)); }
/** * {@inheritdoc} */ public function get($property_name) { if ($property_name == 'default') { return $this->isDefault(); } else { return parent::get($property_name); } }