Merge remote-tracking branch 'origin/master' into php8

This commit is contained in:
github-actions[bot]
2023-01-21 07:46:05 +00:00
2 changed files with 31 additions and 4 deletions
+17
View File
@@ -253,6 +253,23 @@ class JsonApiTest extends TestCase
), $content, 'outputs data correctly');
}
/**
* @runInSeparateProcess
*/
public function testJsonLdTypes()
{
$_GET['jsonld'] = 'types';
ob_start();
new Controller;
$content = ob_get_contents();
ob_end_clean();
$this->assertEquals(str_replace(
'?jsonld=',
'/?jsonld=',
file_get_contents(PUBLIC_PATH . '/js/types.jsonld')
), $content, 'outputs data correctly');
}
/**
* @runInSeparateProcess
*/