Update admin PWA events, branding, and packages
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user