assertSame(RoomType::Public, RoomType::fromName('lobby')); $this->assertSame(RoomType::Private, RoomType::fromName('private-standup')); $this->assertSame(RoomType::Presence, RoomType::fromName('presence-team')); $this->assertSame(RoomType::OpenPresence, RoomType::fromName('open-presence-town-hall')); } public function test_auth_and_presence_flags(): void { $this->assertTrue(RoomType::Private->requiresAuth()); $this->assertTrue(RoomType::Presence->requiresAuth()); $this->assertFalse(RoomType::Public->requiresAuth()); $this->assertFalse(RoomType::OpenPresence->requiresAuth()); $this->assertTrue(RoomType::Presence->hasPresence()); $this->assertTrue(RoomType::OpenPresence->hasPresence()); $this->assertFalse(RoomType::Public->hasPresence()); $this->assertFalse(RoomType::Private->hasPresence()); } }