Update admin PWA events, branding, and packages
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-19 11:35:38 +01:00
parent 926bc7d070
commit fbff2afa3e
43 changed files with 6846 additions and 6323 deletions

View File

@@ -8,6 +8,8 @@ use App\Models\EventType;
use App\Models\Package;
use App\Services\EventJoinTokenService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\URL;
use Tests\TestCase;
class EventBrandingResponseTest extends TestCase
@@ -131,4 +133,19 @@ class EventBrandingResponseTest extends TestCase
$response->assertJsonPath('branding.secondary_color', '#fedcba');
$response->assertJsonPath('branding.buttons.radius', 8);
}
public function test_branding_asset_uses_public_disk(): void
{
Storage::fake('public');
Storage::disk('public')->put('branding/logos/test.png', 'logo');
$url = URL::temporarySignedRoute('api.v1.branding.asset', now()->addMinutes(5), [
'path' => 'branding/logos/test.png',
]);
$response = $this->get($url);
$response->assertOk();
$this->assertSame('logo', $response->streamedContent());
}
}