public function testCreateEntityFromMetadataWithoutForcedSelfProperties() { $object = new TestAsset\Entity('foo', 'Foo'); $metadata = new MetadataMap(['ZFTest\\JsonLD\\Plugin\\TestAsset\\Entity' => ['hydrator' => 'Zend\\Hydrator\\ObjectProperty', 'route_name' => 'hostname/resource', 'properties' => [], 'force_full_uri_id' => false]]); $this->plugin->setMetadataMap($metadata); $entity = $this->plugin->createEntityFromMetadata($object, $metadata->get('ZFTest\\JsonLD\\Plugin\\TestAsset\\Entity')); $properties = $entity->getProperties(); $this->assertFalse($properties->has('id')); }