Skip to content

Commit 4f1cdfb

Browse files
fix(hydra): context url in https
1 parent 001d771 commit 4f1cdfb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

features/hydra/docs.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Feature: Documentation support
1313
And the response should be in JSON
1414
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
1515
# Context
16-
And the JSON node "@context[0]" should be equal to "http://www.w3.org/ns/hydra/context.jsonld"
16+
And the JSON node "@context[0]" should be equal to "https://www.w3.org/ns/hydra/context.jsonld"
1717
And the JSON node "@context[1].@vocab" should be equal to "http://example.com/docs.jsonld#"
1818
And the JSON node "@context[1].hydra" should be equal to "http://www.w3.org/ns/hydra/core#"
1919
And the JSON node "@context[1].rdf" should be equal to "http://www.w3.org/1999/02/22-rdf-syntax-ns#"

src/Hydra/Tests/Serializer/DocumentationNormalizerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function doTestNormalize($resourceMetadataFactory = null): void
106106

107107
$expected = [
108108
'@context' => [
109-
'http://www.w3.org/ns/hydra/context.jsonld',
109+
'https://www.w3.org/ns/hydra/context.jsonld',
110110
[
111111
'@vocab' => '/doc#',
112112
'hydra' => 'http://www.w3.org/ns/hydra/core#',
@@ -406,7 +406,7 @@ public function testNormalizeInputOutputClass(): void
406406

407407
$expected = [
408408
'@context' => [
409-
'http://www.w3.org/ns/hydra/context.jsonld',
409+
'https://www.w3.org/ns/hydra/context.jsonld',
410410
[
411411
'@vocab' => '/doc#',
412412
'hydra' => 'http://www.w3.org/ns/hydra/core#',
@@ -766,7 +766,7 @@ public function testNormalizeWithoutPrefix(): void
766766

767767
$expected = [
768768
'@context' => [
769-
'http://www.w3.org/ns/hydra/context.jsonld',
769+
'https://www.w3.org/ns/hydra/context.jsonld',
770770
[
771771
'@vocab' => '/doc#',
772772
'hydra' => 'http://www.w3.org/ns/hydra/core#',

src/JsonLd/ContextBuilderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
interface ContextBuilderInterface
2525
{
26-
public const HYDRA_CONTEXT = 'http://www.w3.org/ns/hydra/context.jsonld';
26+
public const HYDRA_CONTEXT = 'https://www.w3.org/ns/hydra/context.jsonld';
2727
public const HYDRA_NS = 'http://www.w3.org/ns/hydra/core#';
2828
public const JSONLD_NS = 'http://www.w3.org/ns/json-ld#';
2929
public const RDF_NS = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';

tests/JsonLd/ContextBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function testResourceContextWithoutHydraPrefix(): void
291291
$contextBuilder = new ContextBuilder($this->resourceNameCollectionFactoryProphecy->reveal(), $this->resourceMetadataCollectionFactoryProphecy->reveal(), $this->propertyNameCollectionFactoryProphecy->reveal(), $this->propertyMetadataFactoryProphecy->reveal(), $this->urlGeneratorProphecy->reveal(), null, null, [ContextBuilder::HYDRA_CONTEXT_HAS_PREFIX => false]);
292292

293293
$expected = [
294-
'http://www.w3.org/ns/hydra/context.jsonld',
294+
'https://www.w3.org/ns/hydra/context.jsonld',
295295
[
296296
'@vocab' => '#',
297297
'hydra' => 'http://www.w3.org/ns/hydra/core#',

0 commit comments

Comments
 (0)