mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 04:26:02 +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 = new self();
|
||||||
$model->message = $data['message'] ?? null;
|
$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;
|
return $model;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ class BatchMessageTest extends MailgunTestCase
|
|||||||
->setMethods(['send', 'sendMime', 'show'])
|
->setMethods(['send', 'sendMime', 'show'])
|
||||||
->getMock();
|
->getMock();
|
||||||
$messageApi->method('send')
|
$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');
|
$this->batchMessage = $messageApi->getBatchMessage('example.com');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user