Test: fixing factory on product url

This commit is contained in:
Bruno F. Fontes 2018-09-19 16:30:59 -03:00
parent fa74f32bbd
commit 8033a9aeb2
2 changed files with 1 additions and 1 deletions

View File

@ -25,6 +25,7 @@ $factory->define(App\User::class, function (Faker $faker) {
$factory->define(App\Product::class, function (Faker $faker) { $factory->define(App\Product::class, function (Faker $faker) {
return [ return [
'name' => $faker->sentence, 'name' => $faker->sentence,
'url' => $faker->url,
'user_id' => function () { 'user_id' => function () {
return factory(App\User::class)->create()->id; return factory(App\User::class)->create()->id;
}, },

View File

@ -17,7 +17,6 @@ class ExampleTest extends TestCase
*/ */
public function testBasicTest() public function testBasicTest()
{ {
$response = $this->get('/'); $response = $this->get('/');
$response->assertStatus(200); $response->assertStatus(200);