From 047383fca92530d93e31f713ec46ea33fd31c4ea Mon Sep 17 00:00:00 2001 From: Ruslan Guskov Date: Mon, 9 Jun 2025 15:33:09 +0300 Subject: [PATCH] fix: remove json extension in exportJson method --- stubs/test.blade.php | 2 +- tests/fixtures/CommandTest/test.php | 2 +- tests/fixtures/TestGeneratorTest/post_test.php | 2 +- tests/fixtures/TestGeneratorTest/post_test_read_delete.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stubs/test.blade.php b/stubs/test.blade.php index 4624b498..a14a721a 100644 --- a/stubs/test.blade.php +++ b/stubs/test.blade.php @@ -162,7 +162,7 @@ public function testGet() $response->assertOk(); // TODO: Need to remove after first successful start - $this->exportJson('get_{{\Illuminate\Support\Str::snake($entity)}}.json', $response->json()); + $this->exportJson('get_{{\Illuminate\Support\Str::snake($entity)}}', $response->json()); $this->assertEqualsFixture('get_{{\Illuminate\Support\Str::snake($entity)}}', $response->json()); } diff --git a/tests/fixtures/CommandTest/test.php b/tests/fixtures/CommandTest/test.php index 56580f10..86425bde 100644 --- a/tests/fixtures/CommandTest/test.php +++ b/tests/fixtures/CommandTest/test.php @@ -81,7 +81,7 @@ public function testGet() $response->assertOk(); // TODO: Need to remove after first successful start - $this->exportJson('get_post.json', $response->json()); + $this->exportJson('get_post', $response->json()); $this->assertEqualsFixture('get_post', $response->json()); } diff --git a/tests/fixtures/TestGeneratorTest/post_test.php b/tests/fixtures/TestGeneratorTest/post_test.php index 39e19d3c..b1450c9a 100644 --- a/tests/fixtures/TestGeneratorTest/post_test.php +++ b/tests/fixtures/TestGeneratorTest/post_test.php @@ -113,7 +113,7 @@ public function testGet() $response->assertOk(); // TODO: Need to remove after first successful start - $this->exportJson('get_post.json', $response->json()); + $this->exportJson('get_post', $response->json()); $this->assertEqualsFixture('get_post', $response->json()); } diff --git a/tests/fixtures/TestGeneratorTest/post_test_read_delete.php b/tests/fixtures/TestGeneratorTest/post_test_read_delete.php index 5abd8dbc..acfdb284 100644 --- a/tests/fixtures/TestGeneratorTest/post_test_read_delete.php +++ b/tests/fixtures/TestGeneratorTest/post_test_read_delete.php @@ -55,7 +55,7 @@ public function testGet() $response->assertOk(); // TODO: Need to remove after first successful start - $this->exportJson('get_post.json', $response->json()); + $this->exportJson('get_post', $response->json()); $this->assertEqualsFixture('get_post', $response->json()); }