mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add tests
This commit is contained in:
@@ -147,4 +147,29 @@ class V18Test extends TestCase
|
||||
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
public function runtimeProvider(): array
|
||||
{
|
||||
return [
|
||||
'remove key' => [
|
||||
[
|
||||
'key' => 'example_key',
|
||||
],
|
||||
[
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider runtimeProvider
|
||||
*/
|
||||
public function testRuntime(array $content, array $expected): void
|
||||
{
|
||||
$model = Response::MODEL_RUNTIME;
|
||||
|
||||
$result = $this->filter->parse($content, $model);
|
||||
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user