mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
Add tests
This commit is contained in:
parent
eb7f712379
commit
0488a4582b
1 changed files with 25 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue