From 631fc7796847d7c3e77c9bdc4e08da8cea934c72 Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Tue, 22 Mar 2022 21:15:36 -0400 Subject: [PATCH] Don't explicitly set ID --- app/tests/Integration/Database/DatabaseTests.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/tests/Integration/Database/DatabaseTests.php b/app/tests/Integration/Database/DatabaseTests.php index c488814f..2a0f0dec 100644 --- a/app/tests/Integration/Database/DatabaseTests.php +++ b/app/tests/Integration/Database/DatabaseTests.php @@ -194,7 +194,7 @@ public function testSyncOneToMany(): void 'email' => 'david@attenboroughsreef.com', ]); - // Delete `work`, update `primary`, and add `gmail` + // Delete `work` label, update `primary` label email, and add `gmail` label $user->emails()->sync([ [ 'id' => 1, @@ -938,17 +938,14 @@ protected function generateRoles(): array { return [ EloquentTestRole::create([ - 'id' => 1, 'slug' => 'forager', ]), EloquentTestRole::create([ - 'id' => 2, 'slug' => 'soldier', ]), EloquentTestRole::create([ - 'id' => 3, 'slug' => 'egg-layer', ]), ]; @@ -961,22 +958,18 @@ protected function generatePermissions(): array { return [ EloquentTestPermission::create([ - 'id' => 1, 'slug' => 'uri_harvest', ]), EloquentTestPermission::create([ - 'id' => 2, 'slug' => 'uri_spit_acid', ]), EloquentTestPermission::create([ - 'id' => 3, 'slug' => 'uri_slash', ]), EloquentTestPermission::create([ - 'id' => 4, 'slug' => 'uri_royal_jelly', ]), ]; @@ -1051,12 +1044,10 @@ protected function generateLocations(): array { return [ EloquentTestLocation::create([ - 'id' => 1, 'name' => 'Hatchery', ]), EloquentTestLocation::create([ - 'id' => 2, 'name' => 'Nexus', ]), ]; @@ -1069,17 +1060,14 @@ protected function generateTasks(): array { return [ EloquentTestTask::create([ - 'id' => 1, 'name' => 'Digging', ]), EloquentTestTask::create([ - 'id' => 2, 'name' => 'Chopping', ]), EloquentTestTask::create([ - 'id' => 3, 'name' => 'Baleing', ]), ];