修复新人欢迎被本地清屏过滤
This commit is contained in:
@@ -1009,6 +1009,7 @@ class ChatControllerTest extends TestCase
|
||||
|
||||
$response->assertOk();
|
||||
$history = collect($response->viewData('historyMessages'));
|
||||
$initialWelcomeMessages = collect($response->viewData('initialWelcomeMessages'));
|
||||
|
||||
$newbieBonusMessage = $history->first(fn (array $message): bool => ($message['welcome_kind'] ?? '') === 'newbie_bonus');
|
||||
$aiWelcomeMessage = $history->first(fn (array $message): bool => ($message['welcome_kind'] ?? '') === 'ai_newbie_welcome');
|
||||
@@ -1024,6 +1025,10 @@ class ChatControllerTest extends TestCase
|
||||
$this->assertSame($user->username, $entryMessage['welcome_user']);
|
||||
$this->assertTrue($user->fresh()->has_received_new_gift);
|
||||
$this->assertSame(6666, (int) $user->fresh()->jjb);
|
||||
$this->assertSame(
|
||||
['newbie_bonus', 'ai_newbie_welcome', 'entry_broadcast'],
|
||||
$initialWelcomeMessages->pluck('welcome_kind')->all(),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user