protected function RequestTestJsonapi::assertMimeType in OpenAPI for JSON:API 3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/RequestTestJsonapi.php \Drupal\Tests\openapi_jsonapi\Functional\RequestTestJsonapi::assertMimeType()
File
- tests/
src/ Functional/ RequestTestJsonapi.php, line 63
Class
- RequestTestJsonapi
- REST tests for requests on OpenAPI routes.
Namespace
Drupal\Tests\openapi_jsonapi\FunctionalCode
protected function assertMimeType(array $actual, array $options = []) {
$this
->assertEquals([
'application/vnd.api+json',
], $actual, "JSON:API root should only contain application/vnd.api+json");
}