update MessageUtilTest

This commit is contained in:
sunxyw 2022-05-03 13:09:58 +08:00
parent f487897cf2
commit a65fc4076b
No known key found for this signature in database
GPG Key ID: CEA01A083E98C578
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ namespace ZM\Utils;
use JetBrains\PhpStorm\ArrayShape;
use ReflectionException;
use ReflectionMethod;
use ZM\Annotation\CQ\CommandArgument;
use ZM\Annotation\CQ\CQCommand;
use ZM\Console\Console;
use ZM\Event\EventManager;

View File

@ -52,7 +52,7 @@ class MessageUtilTest extends TestCase
$cmd->class = self::class;
$cmd->method = __FUNCTION__;
EventManager::addEvent(CQCommand::class, $cmd);
$help = resolve(CommandInfoUtil::class)->getHelp(self::class . '@' . __FUNCTION__);
$help = resolve(CommandInfoUtil::class)->getHelp(self::class . '@' . __FUNCTION__, true);
$this->assertEquals('测试命令:作者很懒,啥也没说', $help);
}