Skip to content

Commit 80678b9

Browse files
authored
Merge pull request #120 from RonasIT/97_add_assert_for_test
feat: add assert for tests
2 parents cbb2fe3 + 47d98e5 commit 80678b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stubs/test.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public function testUpdateNotExists()
9393
@endif
9494

9595
$response->assertNotFound();
96+
97+
self::${{\Illuminate\Support\Str::camel($entity)}}State->assertNotChanged();
9698
}
9799

98100
@if ($withAuth)
@@ -103,6 +105,8 @@ public function testUpdateNoAuth()
103105
$response = $this->json('put', '/{{$entities}}/1', $data);
104106

105107
$response->assertUnauthorized();
108+
109+
self::${{\Illuminate\Support\Str::camel($entity)}}State->assertNotChanged();
106110
}
107111

108112
@endif

0 commit comments

Comments
 (0)