From 90b9d176ba9cb29d1292855aa4bd07d6e88c28fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 8 Aug 2024 09:02:49 +0000 Subject: [PATCH] Fix unit test placement --- .../unit/Utopia/Response/Filters/V18Test.php | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/tests/unit/Utopia/Response/Filters/V18Test.php b/tests/unit/Utopia/Response/Filters/V18Test.php index 2110e518a9..5396779b77 100644 --- a/tests/unit/Utopia/Response/Filters/V18Test.php +++ b/tests/unit/Utopia/Response/Filters/V18Test.php @@ -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 */