@@ -330,19 +330,20 @@ public function testRetrieveSchemaFromPackage()
330
330
$ this ->assertEquals ('454f423bd7edddf0bc77af4130ed9161 ' , md5 (json_encode ($ schema )));
331
331
}
332
332
333
- public function testJsonSchemaOrgMediaTypeBlacklistDefault ()
333
+ public function testInvalidContentTypeEndpointsDefault ()
334
334
{
335
335
$ mock = $ this ->getMock ('JsonSchema\Uri\UriRetriever ' , array ('getContentType ' ));
336
336
$ mock ->method ('getContentType ' )->willReturn ('Application/X-Fake-Type ' );
337
337
$ retriever = new UriRetriever ();
338
338
339
339
$ this ->assertTrue ($ retriever ->confirmMediaType ($ mock , 'http://json-schema.org/ ' ));
340
+ $ this ->assertTrue ($ retriever ->confirmMediaType ($ mock , 'https://json-schema.org/ ' ));
340
341
}
341
342
342
343
/**
343
344
* @expectedException \JsonSchema\Exception\InvalidSchemaMediaTypeException
344
345
*/
345
- public function testJsonSchemaOrgMediaTypeBlacklistUnknown ()
346
+ public function testInvalidContentTypeEndpointsUnknown ()
346
347
{
347
348
$ mock = $ this ->getMock ('JsonSchema\Uri\UriRetriever ' , array ('getContentType ' ));
348
349
$ mock ->method ('getContentType ' )->willReturn ('Application/X-Fake-Type ' );
@@ -351,7 +352,7 @@ public function testJsonSchemaOrgMediaTypeBlacklistUnknown()
351
352
$ retriever ->confirmMediaType ($ mock , 'http://example.com ' );
352
353
}
353
354
354
- public function testJsonSchemaOrgMediaTypeBlacklistAdded ()
355
+ public function testInvalidContentTypeEndpointsAdded ()
355
356
{
356
357
$ mock = $ this ->getMock ('JsonSchema\Uri\UriRetriever ' , array ('getContentType ' ));
357
358
$ mock ->method ('getContentType ' )->willReturn ('Application/X-Fake-Type ' );
0 commit comments