Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Aug 1, 2023
1 parent b4c336e commit 04fc950
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions blog-api/tests/Functional/IndexControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
Expand All @@ -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()
);
Expand Down

0 comments on commit 04fc950

Please sign in to comment.