Skip to content

Commit

Permalink
Fix GEOSMS test
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate committed Dec 14, 2023
1 parent 5dd0e1a commit 9035bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Messaging/Adapter/SMS/GEOSMSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testSendSMSUsingDefaultAdapter(): void
{
$defaultAdapterMock = $this->createMock(SMSAdapter::class);
$defaultAdapterMock->method('getName')->willReturn('default');
$defaultAdapterMock->method('send')->willReturn(json_encode(['status' => 'success']));
$defaultAdapterMock->method('send')->willReturn(['results' => [['status' => 'success']]]);

$adapter = new GEOSMS($defaultAdapterMock);

Expand All @@ -30,7 +30,7 @@ public function testSendSMSUsingDefaultAdapter(): void
$result = $adapter->send($message);

$this->assertEquals(1, count($result));
$this->assertEquals('success', $result['default']['status']);
$this->assertEquals('success', $result['default']['results'][0]['status']);
}

public function testSendSMSUsingLocalAdapter(): void
Expand Down

0 comments on commit 9035bf2

Please sign in to comment.