Example #1
0
 public function testAllowsSettingAdditionalEntityProperties()
 {
     $properties = new PropertyCollection();
     $properties->add(new Property('describedby'));
     $properties->add(new Property('orders'));
     $jsonLD = new Collection([], 'item/route');
     $jsonLD->setEntityProperties($properties);
     $this->assertSame($properties, $jsonLD->getEntityProperties());
 }