mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-21 20:16:03 +03:00
Bugfixes
This commit is contained in:
parent
d0cafddeab
commit
997d545e61
@ -25,7 +25,7 @@ final class CreateResponse implements ApiResponse
|
||||
{
|
||||
$model = new self();
|
||||
$model->message = $data['message'] ?? null;
|
||||
$model->route = isset($data['id']) ? Route::create($data) : null;
|
||||
$model->route = isset($data['route']) ? Route::create($data['route']) : null;
|
||||
|
||||
return $model;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class BatchMessageTest extends MailgunTestCase
|
||||
->setMethods(['send', 'sendMime', 'show'])
|
||||
->getMock();
|
||||
$messageApi->method('send')
|
||||
->willReturn(SendResponse::create(['id' => 4711, 'message' => 'Message sent']));
|
||||
->willReturn(SendResponse::create(['id' => '4711', 'message' => 'Message sent']));
|
||||
|
||||
$this->batchMessage = $messageApi->getBatchMessage('example.com');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user