@@ -37,7 +37,7 @@ public function setUp(): void
3737@if (in_array (' C' , $options ) )
3838 public function testCreate()
3939 {
40- $data = $this->getJsonFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request.json ');
40+ $data = $this->getJsonFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request');
4141
4242@if (! $withAuth )
4343 $response = $this->json('post', '/{{ $entities } } ', $data);
@@ -48,16 +48,16 @@ public function testCreate()
4848 $response->assertCreated();
4949
5050 // TODO: Need to remove last argument after first successful start
51- $this->assertEqualsFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _response.json ', $response->json(), true);
51+ $this->assertEqualsFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _response', $response->json(), true);
5252
5353 // TODO: Need to remove last argument after first successful start
54- self::${{ \Illuminate \Support \Str:: camel ($entity ) } } State->assertChangesEqualsFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _state.json ', true);
54+ self::${{ \Illuminate \Support \Str:: camel ($entity ) } } State->assertChangesEqualsFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _state', true);
5555 }
5656
5757@if ($withAuth )
5858 public function testCreateNoAuth()
5959 {
60- $data = $this->getJsonFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request.json ');
60+ $data = $this->getJsonFixture('create_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request');
6161
6262 $response = $this->json('post', '/{{ $entities } } ', $data);
6363
@@ -69,7 +69,7 @@ public function testCreateNoAuth()
6969@if (in_array (' U' , $options ) )
7070 public function testUpdate()
7171 {
72- $data = $this->getJsonFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request.json ');
72+ $data = $this->getJsonFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request');
7373
7474@if (! $withAuth )
7575 $response = $this->json('put', '/{{ $entities } } /1', $data);
@@ -80,12 +80,12 @@ public function testUpdate()
8080 $response->assertNoContent();
8181
8282 // TODO: Need to remove last argument after first successful start
83- self::${{ \Illuminate \Support \Str:: camel ($entity ) } } State->assertChangesEqualsFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _state.json ', true);
83+ self::${{ \Illuminate \Support \Str:: camel ($entity ) } } State->assertChangesEqualsFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _state', true);
8484 }
8585
8686 public function testUpdateNotExists()
8787 {
88- $data = $this->getJsonFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request.json ');
88+ $data = $this->getJsonFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request');
8989
9090@if (! $withAuth )
9191 $response = $this->json('put', '/{{ $entities } } /0', $data);
@@ -101,7 +101,7 @@ public function testUpdateNotExists()
101101@if ($withAuth )
102102 public function testUpdateNoAuth()
103103 {
104- $data = $this->getJsonFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request.json ');
104+ $data = $this->getJsonFixture('update_{{ \Illuminate \Support \Str:: snake ($entity ) } } _request');
105105
106106 $response = $this->json('put', '/{{ $entities } } /1', $data);
107107
@@ -124,7 +124,7 @@ public function testDelete()
124124 $response->assertNoContent();
125125
126126 // TODO: Need to remove last argument after first successful start
127- self::${{ \Illuminate \Support \Str:: camel ($entity ) } } State->assertChangesEqualsFixture('delete_{{ \Illuminate \Support \Str:: snake ($entity ) } } _state.json ', true);
127+ self::${{ \Illuminate \Support \Str:: camel ($entity ) } } State->assertChangesEqualsFixture('delete_{{ \Illuminate \Support \Str:: snake ($entity ) } } _state', true);
128128 }
129129
130130 public function testDeleteNotExists()
@@ -162,9 +162,9 @@ 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
167- $this->assertEqualsFixture('get_{{ \Illuminate \Support \Str:: snake ($entity ) } }.json ', $response->json());
167+ $this->assertEqualsFixture('get_{{ \Illuminate \Support \Str:: snake ($entity ) } } ', $response->json());
168168 }
169169
170170 public function testGetNotExists()
0 commit comments