From 54f571028adc2a3dbb28b49fb4ea7da06b8455b8 Mon Sep 17 00:00:00 2001 From: zhouyangyang Date: Wed, 20 Apr 2022 11:21:49 +0800 Subject: [PATCH] upddate message --- src/Drivers/HogeDriver.php | 2 +- tests/bootstrap.php | 27 --------------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/Drivers/HogeDriver.php b/src/Drivers/HogeDriver.php index c4c1157..b9c7c42 100644 --- a/src/Drivers/HogeDriver.php +++ b/src/Drivers/HogeDriver.php @@ -31,7 +31,7 @@ class HogeDriver extends AbstractDriver $response = $this->client->post($url, $data); $result = $response->toArray() ?? []; if ($result['code'] != 200) { - throw new DriverErrorException($result['message'] ?? '未知错误', $result['code'], $response); + throw new DriverErrorException($result['msg'] ?? '未知错误', $result['code'], $response); } return []; } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 78b9212..e69de29 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,27 +0,0 @@ -shouldReceive('get')->with(EventDispatcherInterface::class)->andReturn(m::mock(EventDispatcherInterface::class)); -$container->shouldReceive('get')->with(ConfigInterface::class)->andReturn(new Config([])); -$container->shouldReceive('get')->with(MailManagerInterface::class)->andReturn(new MailManager($container)); - -ApplicationContext::setContainer($container);