mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-02-15 03:23:17 +00:00
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:
@@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
26
database/factories/NotificationFactory.php
Normal file
26
database/factories/NotificationFactory.php
Normal 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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user