Skip to content

Commit

Permalink
fix: response comparison directly to array to array
Browse files Browse the repository at this point in the history
  • Loading branch information
Mane-Olawale committed Aug 12, 2022
1 parent f2a5595 commit cff5c90
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/TermiiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,16 @@ public function testSendMethodCall()
])
)));

$this->assertEquals($data, $termii->send('2347041945964', 'Lotus give me my phone', 'Olawale', 'generic'));
/**
* @var \ManeOlawale\RestResponse\AbstractResponse
*/
$response = $termii->send('2347041945964', 'Lotus give me my phone', 'Olawale', 'generic');
$this->assertEquals(
$data,
$response->toArray()
);

$this->assertSame($data['message_id'], $response['message_id']);
}

public function testGetServices()
Expand Down

0 comments on commit cff5c90

Please sign in to comment.