mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
🔥 **Cleanup:** Removed BookCase and OrangePill models, factories, migrations, and related references. Added tests for new service and meetup creation flows. Updated PHPUnit settings and browser-specific configurations.
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\BookCase;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<BookCase>
|
||||
*/
|
||||
class BookCaseFactory extends Factory
|
||||
{
|
||||
protected $model = BookCase::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'title' => 'Bitcoin Bücherregal '.fake()->unique()->numberBetween(1, 99999),
|
||||
'latitude' => fake()->latitude(47.0, 55.0),
|
||||
'longitude' => fake()->longitude(5.0, 16.0),
|
||||
'address' => fake()->streetAddress().', '.fake()->postcode().' '.fake()->city(),
|
||||
'type' => fake()->randomElement(['public', 'private']),
|
||||
'open' => fake()->randomElement(['24/7', 'Mo-Fr 09:00-18:00', 'Wochenenden', null]),
|
||||
'comment' => fake()->boolean(60) ? fake()->sentence() : null,
|
||||
'contact' => fake()->boolean(50) ? fake()->email() : null,
|
||||
'bcz' => null,
|
||||
'digital' => fake()->boolean(20),
|
||||
'icontype' => 'default',
|
||||
'deactivated' => false,
|
||||
'deactreason' => '',
|
||||
'entrytype' => fake()->randomElement(['public', 'private']),
|
||||
'homepage' => fake()->boolean(40) ? fake()->url() : null,
|
||||
'created_by' => User::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\BookCase;
|
||||
use App\Models\OrangePill;
|
||||
use App\Models\User;
|
||||
use Database\Factories\Helpers\NostrHelper;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<OrangePill>
|
||||
*/
|
||||
class OrangePillFactory extends Factory
|
||||
{
|
||||
protected $model = OrangePill::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => User::factory(),
|
||||
'book_case_id' => BookCase::factory(),
|
||||
'date' => fake()->dateTimeBetween('-1 year', 'now'),
|
||||
'amount' => fake()->numberBetween(1, 21),
|
||||
'comment' => fake()->boolean(60) ? fake()->sentence() : null,
|
||||
'nostr_status' => NostrHelper::fakeNostrEventStatus(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user