RequestTestNull.php in OpenAPI 8.2
File
tests/src/Functional/RequestTestNull.php
View source
<?php
namespace Drupal\Tests\openapi\Functional;
final class RequestTestNull extends RequestTestBase {
const API_MODULE = 'null';
public static $modules = [
'user',
'field',
'filter',
'text',
'taxonomy',
'serialization',
'openapi',
'openapi_test',
];
public function testRequests($api_module, $options = []) {
$this
->requestOpenApiJson($api_module, $options);
}
protected function getRouteBase() {
return '';
}
protected function assertMimeType(array $actual, array $options = []) {
$this
->assertEquals([
'null',
], $actual);
}
protected function buildExpectationsDirectory() {
return sprintf('%s/expectations/%s', dirname(dirname(__DIR__)), static::API_MODULE);
}
}