新增管理登录页面
This commit is contained in:
@@ -45,6 +45,21 @@ class ChatControllerTest extends TestCase
|
||||
$this->assertEquals(1, Redis::hexists("room:{$room->id}:users", $user->username));
|
||||
}
|
||||
|
||||
/**
|
||||
* 测试主干默认聊天室页面不会渲染虚拟形象挂载点和配置。
|
||||
*/
|
||||
public function test_room_view_does_not_render_avatar_widget_or_config_by_default(): void
|
||||
{
|
||||
$room = Room::create(['room_name' => 'avguard']);
|
||||
$user = User::factory()->create();
|
||||
|
||||
$response = $this->actingAs($user)->get(route('chat.room', $room->id));
|
||||
|
||||
$response->assertOk();
|
||||
$response->assertDontSee('chat-avatar-widget');
|
||||
$response->assertDontSee('chatAvatarWidget');
|
||||
}
|
||||
|
||||
/**
|
||||
* 测试用户可以发送普通文本消息。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user