mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-24 04:14:57 +00:00
Test: fixing factory on product url
This commit is contained in:
parent
fa74f32bbd
commit
8033a9aeb2
@ -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;
|
||||||
},
|
},
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user