tests/seeds/UserTableSeeder.php 1 location
|
@@ 9-17 (lines=9) @@
|
| 6 |
|
|
| 7 |
|
class UserTableSeeder extends Seeder |
| 8 |
|
{ |
| 9 |
|
public function run() |
| 10 |
|
{ |
| 11 |
|
factory(\Tests\Models\User::class, 50) |
| 12 |
|
->create() |
| 13 |
|
->each(function ($u) { |
| 14 |
|
$u->profile()->save(factory(\Tests\Models\Profile::class)->make()); |
| 15 |
|
$u->tags()->saveMany(factory(\Tests\Models\Tag::class, 5)->make()); |
| 16 |
|
}); |
| 17 |
|
} |
| 18 |
|
} |
| 19 |
|
|
tests/UserFormTest.php 1 location
|
@@ 102-110 (lines=9) @@
|
| 99 |
|
$this->assertFileExists(public_path('uploads/'.$avatar)); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
protected function seedsTable($count = 100) |
| 103 |
|
{ |
| 104 |
|
factory(\Tests\Models\User::class, $count) |
| 105 |
|
->create() |
| 106 |
|
->each(function ($u) { |
| 107 |
|
$u->profile()->save(factory(\Tests\Models\Profile::class)->make()); |
| 108 |
|
$u->tags()->saveMany(factory(\Tests\Models\Tag::class, 5)->make()); |
| 109 |
|
}); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
public function testEditForm() |
| 113 |
|
{ |
tests/UserGridTest.php 1 location
|
@@ 52-60 (lines=9) @@
|
| 49 |
|
->seeInElement("a[href=\"{$urlNew}\"]", 'New'); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
protected function seedsTable($count = 100) |
| 53 |
|
{ |
| 54 |
|
factory(\Tests\Models\User::class, $count) |
| 55 |
|
->create() |
| 56 |
|
->each(function ($u) { |
| 57 |
|
$u->profile()->save(factory(\Tests\Models\Profile::class)->make()); |
| 58 |
|
$u->tags()->saveMany(factory(\Tests\Models\Tag::class, 5)->make()); |
| 59 |
|
}); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
public function testGridWithData() |
| 63 |
|
{ |