Skip to content

Commit fce3478

Browse files
committed
fix: Cleanup test names
1 parent ae76ab2 commit fce3478

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/Uri/UriRetrieverTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,19 +330,20 @@ public function testRetrieveSchemaFromPackage()
330330
$this->assertEquals('454f423bd7edddf0bc77af4130ed9161', md5(json_encode($schema)));
331331
}
332332

333-
public function testJsonSchemaOrgMediaTypeBlacklistDefault()
333+
public function testInvalidContentTypeEndpointsDefault()
334334
{
335335
$mock = $this->getMock('JsonSchema\Uri\UriRetriever', array('getContentType'));
336336
$mock->method('getContentType')->willReturn('Application/X-Fake-Type');
337337
$retriever = new UriRetriever();
338338

339339
$this->assertTrue($retriever->confirmMediaType($mock, 'http://json-schema.org/'));
340+
$this->assertTrue($retriever->confirmMediaType($mock, 'https://json-schema.org/'));
340341
}
341342

342343
/**
343344
* @expectedException \JsonSchema\Exception\InvalidSchemaMediaTypeException
344345
*/
345-
public function testJsonSchemaOrgMediaTypeBlacklistUnknown()
346+
public function testInvalidContentTypeEndpointsUnknown()
346347
{
347348
$mock = $this->getMock('JsonSchema\Uri\UriRetriever', array('getContentType'));
348349
$mock->method('getContentType')->willReturn('Application/X-Fake-Type');
@@ -351,7 +352,7 @@ public function testJsonSchemaOrgMediaTypeBlacklistUnknown()
351352
$retriever->confirmMediaType($mock, 'http://example.com');
352353
}
353354

354-
public function testJsonSchemaOrgMediaTypeBlacklistAdded()
355+
public function testInvalidContentTypeEndpointsAdded()
355356
{
356357
$mock = $this->getMock('JsonSchema\Uri\UriRetriever', array('getContentType'));
357358
$mock->method('getContentType')->willReturn('Application/X-Fake-Type');

0 commit comments

Comments
 (0)