mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-08 03:50:50 +08:00
chore(notice): 规范修复与安装演练收尾
This commit is contained in:
@@ -77,9 +77,9 @@ class NoticeEventTest extends TestCase
|
||||
// inmail 行直接成功终态(无 email 地址的管理员 email 渠道被跳过)
|
||||
$this->assertDatabaseHas('system_notice_target', [
|
||||
'notice_id' => $row['id'],
|
||||
'admin_id' => $adminId,
|
||||
'channel' => 'inmail',
|
||||
'status' => 2,
|
||||
'admin_id' => $adminId,
|
||||
'channel' => 'inmail',
|
||||
'status' => 2,
|
||||
]);
|
||||
$this->assertSame(
|
||||
1,
|
||||
@@ -119,11 +119,11 @@ class NoticeEventTest extends TestCase
|
||||
private function createAdmin(array $overrides = []): int
|
||||
{
|
||||
$data = array_merge([
|
||||
'username' => 'evt_' . uniqid(),
|
||||
'password' => 'not-a-real-password',
|
||||
'nickname' => '事件测试用户',
|
||||
'email' => '',
|
||||
'status' => 1,
|
||||
'username' => 'evt_' . uniqid(),
|
||||
'password' => 'not-a-real-password',
|
||||
'nickname' => '事件测试用户',
|
||||
'email' => '',
|
||||
'status' => 1,
|
||||
'create_time' => time(),
|
||||
'update_time' => time(),
|
||||
'delete_time' => 0,
|
||||
@@ -138,11 +138,11 @@ class NoticeEventTest extends TestCase
|
||||
private function setLoginSceneSwitch(string $value): void
|
||||
{
|
||||
Db::name('system_config')->insert([
|
||||
'name' => 'notify_login_scene_enable',
|
||||
'group' => 'notify',
|
||||
'value' => $value,
|
||||
'remark' => 'NoticeEventTest fixture',
|
||||
'sort' => 100,
|
||||
'name' => 'notify_login_scene_enable',
|
||||
'group' => 'notify',
|
||||
'value' => $value,
|
||||
'remark' => 'NoticeEventTest fixture',
|
||||
'sort' => 100,
|
||||
'create_time' => time(),
|
||||
'update_time' => time(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user