Skip to content

Commit

Permalink
Update project and task factories
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortiix85 committed Jan 22, 2024
1 parent 0e65553 commit 7cfac05
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
13 changes: 12 additions & 1 deletion database/factories/ProjectFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
*/
class ProjectFactory extends Factory
{
protected static $possibleProjectName = [
"PFE",
'Aventuriers du rail',
'Falling Blox',
'Projet InfraLog',
"Etude de marché",
"Projet A",
"Maestro App",
"Stage",
];

/**
* Define the model's default state.
*
Expand All @@ -19,7 +30,7 @@ public function definition(): array
$faker = $this->faker;

return [
'name' => ucfirst($faker->word()),
'name' => $faker->randomElement(static::$possibleProjectName),
'description' => $faker->sentence(10, true),
'start_date' => $faker->dateTimeBetween('-1 year', 'now'),
'end_date' => $faker->dateTimeBetween('now', '+1 year')
Expand Down
12 changes: 8 additions & 4 deletions database/factories/TaskFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@ class TaskFactory extends Factory
"Rédiger un plan d'action",
'Planifier la réunion avec les collaborateurs',
'Convoquer Jean Yves',
'Virer Camille du projet',
"Avancer le développement de l'application",
"Déployer l'application",
"Installer Laravel"
"Installer Laravel",
"Utiliser Eloquent",
"Faire le cahier des charges",
"Virer Jean Yves"
];

protected static $possibleTaskDescription = [
"Il faut que nous avançions plus vite",
'Les collaborateurs à prévenir sont : Jean Mich et Yves',
'Il faut aussi préparer des arguments pour virer Jean Yves',
'Il faudrait la convoquer la semaine prochaine',
'Il faudrait convoquer l\'équipe la semaine prochaine',
"L'application doit être terminée la semaine prochaine",
"Laravel version 1.0.0.0.2"
"Laravel version 1.0.0.0.2",
"C'est nécessaire de le faire correctement",
];

/**
Expand Down

0 comments on commit 7cfac05

Please sign in to comment.