forked from magonysandormate/PeePal
Kész tesztelés
This commit is contained in:
23
Backend/laravel9/database/factories/KeruletekFactory.php
Normal file
23
Backend/laravel9/database/factories/KeruletekFactory.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Kerulet>
|
||||
*/
|
||||
class KeruletekFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'kerulet_nev' => 'X. kerület'
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -18,25 +18,11 @@ class UserFactory extends Factory
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name(),
|
||||
'nev' => $this->faker->name(),
|
||||
'email' => $this->faker->unique()->safeEmail(),
|
||||
'email_verified_at' => now(),
|
||||
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
|
||||
'remember_token' => Str::random(10),
|
||||
'felh_nev' => $this->faker->userName(),
|
||||
'jelszo' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
|
||||
'is_admin' => false,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicate that the model's email address should be unverified.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Factories\Factory
|
||||
*/
|
||||
public function unverified()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'email_verified_at' => null,
|
||||
];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
32
Backend/laravel9/database/factories/WcAdatokFactory.php
Normal file
32
Backend/laravel9/database/factories/WcAdatokFactory.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\WcAdatok>
|
||||
*/
|
||||
class WcAdatokFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'nev' => $this->faker->name(),
|
||||
'kerulet_id' => 1,
|
||||
'kozeli_megall' => $this->faker->text(),
|
||||
'akadalym' => false,
|
||||
'ar' => 200,
|
||||
'nyitva' => '0:00 - 24:00',
|
||||
'hossz_koord' => 47.4979,
|
||||
'szel_koord' => 19.0402,
|
||||
'utvonal' => 'maps.google.com',
|
||||
'felhasznalo_id' => 1
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user