Skip to content

Commit 614d650

Browse files
authored
Merge pull request #158 from RonasIT/147-tests-refactoring
fix: remove json extension in exportJson method
2 parents c56deae + 047383f commit 614d650

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

stubs/test.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testGet()
162162
$response->assertOk();
163163

164164
// TODO: Need to remove after first successful start
165-
$this->exportJson('get_{{\Illuminate\Support\Str::snake($entity)}}.json', $response->json());
165+
$this->exportJson('get_{{\Illuminate\Support\Str::snake($entity)}}', $response->json());
166166

167167
$this->assertEqualsFixture('get_{{\Illuminate\Support\Str::snake($entity)}}', $response->json());
168168
}

tests/fixtures/CommandTest/test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testGet()
8181
$response->assertOk();
8282

8383
// TODO: Need to remove after first successful start
84-
$this->exportJson('get_post.json', $response->json());
84+
$this->exportJson('get_post', $response->json());
8585

8686
$this->assertEqualsFixture('get_post', $response->json());
8787
}

tests/fixtures/TestGeneratorTest/post_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function testGet()
113113
$response->assertOk();
114114

115115
// TODO: Need to remove after first successful start
116-
$this->exportJson('get_post.json', $response->json());
116+
$this->exportJson('get_post', $response->json());
117117

118118
$this->assertEqualsFixture('get_post', $response->json());
119119
}

tests/fixtures/TestGeneratorTest/post_test_read_delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testGet()
5555
$response->assertOk();
5656

5757
// TODO: Need to remove after first successful start
58-
$this->exportJson('get_post.json', $response->json());
58+
$this->exportJson('get_post', $response->json());
5959

6060
$this->assertEqualsFixture('get_post', $response->json());
6161
}

0 commit comments

Comments
 (0)