/**
  * @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));
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function get($property_name)
 {
     if ($property_name == 'default') {
         return $this->isDefault();
     } else {
         return parent::get($property_name);
     }
 }