Files
ladill-meet/tests/Unit/SpaceServiceTest.php
T
isaaccladandCursor 777a3e9126
Deploy Ladill Meet / deploy (push) Successful in 49s
Restyle audio room speaker cards like Spaces and add room chat to the toolbar.
Use a three-column avatar grid with role labels and speaking/muted indicators, enable chat in audio rooms, and swap the mobile People nav button for Chat since People stays in the header.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 01:10:12 +00:00

26 lines
842 B
PHP

<?php
namespace Tests\Unit;
use App\Models\Room;
use App\Services\Meet\SpaceService;
use Tests\TestCase;
class SpaceServiceTest extends TestCase
{
public function test_space_rooms_disallow_meeting_only_features(): void
{
$service = app(SpaceService::class);
$space = new Room(['type' => 'space']);
$meeting = new Room(['type' => 'meeting']);
foreach (['breakouts', 'qa', 'polls', 'files', 'whiteboard', 'programme', 'live_stream', 'lock'] as $feature) {
$this->assertFalse($service->allowsRoomFeature($space, $feature), $feature);
$this->assertTrue($service->allowsRoomFeature($meeting, $feature), $feature);
}
$this->assertTrue($service->allowsRoomFeature($space, 'chat'));
$this->assertTrue($service->allowsRoomFeature($meeting, 'chat'));
}
}