public function testCreateCollectionWithoutForcedSelfProperties() { $collection = ['foo' => 'bar']; $metadata = new MetadataMap(['ZF\\JsonLD\\Collection' => ['is_collection' => true, 'route_name' => 'hostname/contacts', 'entity_route_name' => 'hostname/embedded', 'properties' => [], 'force_full_uri_id' => false]]); $this->plugin->setMetadataMap($metadata); $result = $this->plugin->createCollection($collection); $properties = $result->getProperties(); $this->assertFalse($properties->has('self')); }