Add more invite background presets
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-23 22:54:54 +01:00
parent 14bb375674
commit 6bd75b0788
5 changed files with 91 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace Tests\Unit;
use App\Http\Controllers\Api\Tenant\EventJoinTokenLayoutController;
use ReflectionClass;
use Tests\TestCase;
class EventJoinTokenLayoutControllerPresetsTest extends TestCase
{
public function test_background_preset_assets_exist(): void
{
$reflection = new ReflectionClass(EventJoinTokenLayoutController::class);
$presets = $reflection->getConstant('BACKGROUND_PRESETS');
$this->assertIsArray($presets);
$this->assertNotEmpty($presets);
foreach ($presets as $key => $path) {
$this->assertIsString($path);
$this->assertNotSame('', $path);
$this->assertFileExists(public_path($path), "Missing background asset for preset {$key}.");
}
}
}