🔥 **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:
BT
2026-05-02 22:00:26 +01:00
parent 63aed880e1
commit 04e3e30fcf
54 changed files with 3440 additions and 298 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
use App\Models\LibraryItem;
use App\Models\User;
it('returns nostr-pubkeys in /api/nostrplebs', function () {
User::factory()->create(['nostr' => 'npub1'.str_repeat('a', 58)]);
User::factory()->create(['nostr' => 'npub1'.str_repeat('b', 58)]);
User::factory()->create(['nostr' => null]);
$response = $this->getJson('/api/nostrplebs');
$response->assertSuccessful();
expect($response->json())
->toHaveCount(2)
->each->toStartWith('npub1');
});
it('returns bindle-type library items in /api/bindles', function () {
LibraryItem::factory()->create(['type' => 'bindle', 'name' => 'My Bindle']);
LibraryItem::factory()->create(['type' => 'article', 'name' => 'My Article']);
$response = $this->getJson('/api/bindles');
$response->assertSuccessful();
$names = collect($response->json())->pluck('name');
expect($names->all())
->toContain('My Bindle')
->not->toContain('My Article');
});