From b6a172a5df36576c50b9c204c3afae636c598186 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Wed, 19 Sep 2018 16:30:59 -0300 Subject: [PATCH] Test: fixing factory on product url --- database/factories/UserFactory.php | 1 + tests/Feature/ExampleTest.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 83bc1e8..351d428 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -25,6 +25,7 @@ $factory->define(App\User::class, function (Faker $faker) { $factory->define(App\Product::class, function (Faker $faker) { return [ 'name' => $faker->sentence, + 'url' => $faker->url, 'user_id' => function () { return factory(App\User::class)->create()->id; }, diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 009e353..d43de8e 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -17,7 +17,6 @@ class ExampleTest extends TestCase */ public function testBasicTest() { - $response = $this->get('/'); $response->assertStatus(200);