mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-23 20:10:52 +00:00
Test: fixing factory on product url
This commit is contained in:
parent
ae58f6325d
commit
b6a172a5df
@ -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;
|
||||
},
|
||||
|
@ -17,7 +17,6 @@ class ExampleTest extends TestCase
|
||||
*/
|
||||
public function testBasicTest()
|
||||
{
|
||||
|
||||
$response = $this->get('/');
|
||||
$response->assertStatus(200);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user