This commit is contained in:
Nyholm 2019-01-17 20:48:39 +01:00 committed by David Garcia
parent d0cafddeab
commit 997d545e61
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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');
} }