* [unittest] Fix mail getMessages method.

This commit is contained in:
wangyidong
2025-06-11 09:30:55 +08:00
parent 5c30bdc9ec
commit bb0c0be877
+5 -4
View File
@@ -4,8 +4,10 @@ declare(strict_types=1);
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/message.unittest.class.php';
zenData('notify')->loadYaml('notify')->gen(10);
$notify = zenData('notify')->loadYaml('notify');
$notify->action->range('1');
$notify->gen(10);
zenData('action')->gen(1);
zenData('user')->gen(1);
su('admin');
@@ -17,7 +19,6 @@ timeout=0
cid=0
- 测试获取status为 wait 的数据信息 @1,4,10
- 测试获取数据信息 @1,2,3,4,5,10
*/
@@ -27,4 +28,4 @@ $type = array('wait', '');
$message = new messageTest();
r($message->getMessagesTest($type[0])) && p() && e('1,4,10'); // 测试获取status为 wait 的数据信息
r($message->getMessagesTest($type[1])) && p() && e('1,2,3,4,5,10'); // 测试获取数据信息
r($message->getMessagesTest($type[1])) && p() && e('1,2,3,4,5,10'); // 测试获取数据信息