File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ class {{modelName}}Test extends TestCase
25
25
26
26
27
27
public function testPut(){
28
- // You must implement test with validators
29
- // Now it"s filled with simple assertion
30
- $this->assertTrue(true );
28
+ ${{modelNameSingularLowerCase}} = {{modelName}}::all()->first()->toArray();
29
+ $this->json("PUT", "api/{{modelNameSingularLowerCase}}/", ${{modelNameSingularLowerCase}})
30
+ ->assertStatus(201 );
31
31
}
32
32
33
33
34
34
public function testPatch(){
35
- // You must implement test with validators
36
- // Now it"s filled with simple assertion
37
- $this->assertTrue(true );
35
+ ${{modelNameSingularLowerCase}} = {{modelName}}::all()->first()->toArray();
36
+ $this->json("PATCH", "api/{{modelNameSingularLowerCase}}/".${{modelNameSingularLowerCase}}['id'], ${{modelNameSingularLowerCase}})
37
+ ->assertStatus(200 );
38
38
}
39
39
40
40
public function testDelete(){
You can’t perform that action at this time.
0 commit comments