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);