Fix all tests (vibe-kanban bba3e2c9)

Fixe alle tests. Frage mich, wenn du nicht weißt, was zu tun ist.
This commit is contained in:
vk
2026-02-11 23:15:49 +01:00
parent 9faae15212
commit 0639c1a656
17 changed files with 220 additions and 185 deletions

View File

@@ -34,6 +34,7 @@ class EinundzwanzigPlebFactory extends Factory
public function boardMember(): static
{
return $this->state(fn (array $attributes) => [
'npub' => config('einundzwanzig.config.current_board')[0],
'association_status' => \App\Enums\AssociationStatus::HONORARY,
]);
}

View File

@@ -0,0 +1,26 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Notification>
*/
class NotificationFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->sentence(3),
'description' => $this->faker->paragraph(),
'category' => $this->faker->randomElement(\App\Enums\NewsCategory::cases()),
'einundzwanzig_pleb_id' => \App\Models\EinundzwanzigPleb::factory(),
];
}
}

View File

@@ -21,6 +21,7 @@ class ProjectProposalFactory extends Factory
'name' => $this->faker->sentence(3),
'description' => $this->faker->paragraph(),
'support_in_sats' => $this->faker->numberBetween(10000, 1000000),
'website' => $this->faker->url(),
];
}
}