Adapt API tests for dynamic usage

This commit is contained in:
Philipp 2021-11-14 23:35:01 +01:00
parent cca1be21a3
commit d32f8e5285
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
8 changed files with 23 additions and 15 deletions

View file

@ -10,14 +10,16 @@ class TestTest extends ApiTest
{
public function testJson()
{
Test::rawContent(['extension' => 'json']);
$test = new Test(['extension' => 'json']);
$test->rawContent();
self::assertEquals('"ok"', ApiResponseDouble::getOutput());
}
public function testXml()
{
Test::rawContent(['extension' => 'xml']);
$test = new Test(['extension' => 'xml']);
$test->rawContent();
self::assertxml(ApiResponseDouble::getOutput(), 'ok');
}