From 04fc950a02e7a0813b2cd02d7fabbd2b575b067f Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Tue, 1 Aug 2023 23:23:32 +0300 Subject: [PATCH] Fix tests --- blog-api/tests/Functional/IndexControllerTest.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/blog-api/tests/Functional/IndexControllerTest.php b/blog-api/tests/Functional/IndexControllerTest.php index 781f79ec..1b9abd4e 100644 --- a/blog-api/tests/Functional/IndexControllerTest.php +++ b/blog-api/tests/Functional/IndexControllerTest.php @@ -30,7 +30,11 @@ public function testGetIndex(): void 'status' => 'success', 'error_message' => '', 'error_code' => null, - 'data' => ['version' => '3.0', 'author' => 'yiisoft'], + 'data' => [ + 'version' => '3.0', + 'author' => 'yiisoft', + 'lazy' => true, + ], ], $response->getContentAsJson() ); @@ -52,7 +56,11 @@ public function testGetIndexMockVersion(): void 'status' => 'success', 'error_message' => '', 'error_code' => null, - 'data' => ['version' => '3.0.0', 'author' => 'yiisoft'], + 'data' => [ + 'version' => '3.0.0', + 'author' => 'yiisoft', + 'lazy' => false, + ], ], $response->getContentAsJson() );