added unit testing

This commit is contained in:
Zain Fauzan Rofie Azizi
2018-05-04 16:13:51 +08:00
parent a08c107ef7
commit 19f97d0662
10 changed files with 189 additions and 129 deletions
@@ -0,0 +1,18 @@
<?php
use Faker\Generator as Faker;
$factory->define(App\Deliveryinfo::class, function (Faker $faker) {
return [
'id' => $faker,
'branch' => $faker->text,
'deli_info' => $faker->sentence,
'address' => $faker->text,
'city' => $faker->text,
'postcode' => $faker->text,
'state' => $faker->text,
'country' => $faker->text,
'contact_person' => $faker->name,
'contact_person_no' => $faker->text,
];
});
+1 -1
View File
@@ -17,7 +17,7 @@ $factory->define(App\User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
'password' => bcrypt(str_random(10)), // secret
'remember_token' => str_random(10),
];
});