Mercurial > packages > magicforger
diff src/Generator/Test/stubs/test.stub @ 39:b5c6ebd33547 ls_dev_2025_09
Improving the factories, tests, and requests
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 25 Sep 2025 23:16:13 -0400 |
| parents | 116b36f5e73b |
| children | 2cf26b593f4a |
line wrap: on
line diff
--- a/src/Generator/Test/stubs/test.stub Thu Sep 25 20:24:13 2025 -0400 +++ b/src/Generator/Test/stubs/test.stub Thu Sep 25 23:16:13 2025 -0400 @@ -105,7 +105,7 @@ ->assertRedirect(route('{{ tableName }}.edit', $item)); // Make sure no entry was added - $this->assertDatabaseHas('games', array_intersect(array_flip($item->getFillable()), $item->toArray())); + $this->assertDatabaseHas('{{ tableName }}', array_intersect_key($item->toArray(), array_flip($item->getFillable()))); } public function test_{{ modelVariable }}_crud_delete_usage(): void
