Skip to content

Commit

Permalink
Don't explicitly set ID
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Mar 23, 2022
1 parent fffadc2 commit 631fc77
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/tests/Integration/Database/DatabaseTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function testSyncOneToMany(): void
'email' => '[email protected]',
]);

// Delete `work`, update `primary`, and add `gmail`
// Delete `work` label, update `primary` label email, and add `gmail` label
$user->emails()->sync([
[
'id' => 1,
Expand Down Expand Up @@ -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',
]),
];
Expand All @@ -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',
]),
];
Expand Down Expand Up @@ -1051,12 +1044,10 @@ protected function generateLocations(): array
{
return [
EloquentTestLocation::create([
'id' => 1,
'name' => 'Hatchery',
]),

EloquentTestLocation::create([
'id' => 2,
'name' => 'Nexus',
]),
];
Expand All @@ -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',
]),
];
Expand Down

0 comments on commit 631fc77

Please sign in to comment.