From efaa13c0ee36a7b667bb9d7972e46719e33598b0 Mon Sep 17 00:00:00 2001 From: Mark Hester Date: Sun, 11 Aug 2019 15:13:09 +0100 Subject: [PATCH] [hotfix] tests now pass --- database/migrations/2018_09_16_101736_create_server_table.php | 1 + tests/Feature/ListingControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/database/migrations/2018_09_16_101736_create_server_table.php b/database/migrations/2018_09_16_101736_create_server_table.php index 0ee072aa4..a95e00b1f 100644 --- a/database/migrations/2018_09_16_101736_create_server_table.php +++ b/database/migrations/2018_09_16_101736_create_server_table.php @@ -27,6 +27,7 @@ public function up() (new Tag(['name' => 'freebies']))->save(); (new Tag(['name' => 'gepard']))->save(); (new Tag(['name' => 'guild-pack']))->save(); + (new Tag(['name' => 'pk-mode']))->save(); (new Tag(['name' => 'mobile']))->save(); (new Tag(['name' => 'frost']))->save(); (new Tag(['name' => 'no-donations']))->save(); diff --git a/tests/Feature/ListingControllerTest.php b/tests/Feature/ListingControllerTest.php index 18e0f032d..69244edd3 100644 --- a/tests/Feature/ListingControllerTest.php +++ b/tests/Feature/ListingControllerTest.php @@ -63,7 +63,7 @@ public function test_listing_can_be_stored() $createdListing = Listing::whereName('foo')->first(); - $this->assertDatabaseHas('listing_tag', ['listing_id' => $createdListing->getKey(), 'tag_id' => 2]); + $this->assertDatabaseHas('listing_tag', ['listing_id' => $createdListing->getKey(), 'tag_id' => 1]); $this->assertDatabaseHas('listing_configurations', array_merge($configs->toArray(), ['listing_id' => $createdListing->getKey()]));