mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Fix unit test placement
This commit is contained in:
parent
bc4a250813
commit
90b9d176ba
1 changed files with 26 additions and 26 deletions
|
|
@ -35,6 +35,32 @@ class V18Test extends TestCase
|
|||
[
|
||||
]
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider functionProvider
|
||||
*/
|
||||
public function testFunction(array $content, array $expected): void
|
||||
{
|
||||
$model = Response::MODEL_FUNCTION;
|
||||
|
||||
$result = $this->filter->parse($content, $model);
|
||||
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
|
||||
public function executionProvider(): array
|
||||
{
|
||||
return [
|
||||
'remove scheduledAt' => [
|
||||
[
|
||||
'scheduledAt' => '2024-07-13T09:00:00.000Z',
|
||||
],
|
||||
[
|
||||
]
|
||||
],
|
||||
'update 404 status' => [
|
||||
[
|
||||
'statusCode' => '404',
|
||||
|
|
@ -78,32 +104,6 @@ class V18Test extends TestCase
|
|||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider functionProvider
|
||||
*/
|
||||
public function testFunction(array $content, array $expected): void
|
||||
{
|
||||
$model = Response::MODEL_FUNCTION;
|
||||
|
||||
$result = $this->filter->parse($content, $model);
|
||||
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
|
||||
public function executionProvider(): array
|
||||
{
|
||||
return [
|
||||
'remove scheduledAt' => [
|
||||
[
|
||||
'scheduledAt' => '2024-07-13T09:00:00.000Z',
|
||||
],
|
||||
[
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider executionProvider
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue