Test: fixing factory on product url

This commit is contained in:
Bruno F. Fontes 2018-09-19 16:30:59 -03:00
parent ae58f6325d
commit b6a172a5df
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
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) {
return [
'name' => $faker->sentence,
'url' => $faker->url,
'user_id' => function () {
return factory(App\User::class)->create()->id;
},

View File

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