Skip to content

Commit 9786526

Browse files
committed
improve test
1 parent a14cab1 commit 9786526

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/MessageSenderTest.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ class MessageSenderTest extends TestCase
4747
Assert::same([
4848
'application/json',
4949
'transactional',
50-
'{"application_id":5,"primary_channel":"sms","phone_number":"420777777777","country":"cz","schedule":null,"channels":{"sms":{"text":"test","variables":[],"sender_id":"gText","sender_id_value":"BulkGate","unicode":true}},"tag":"451"}',
50+
'{"application_id":5,"primary_channel":"sms","phone_number":"420777777777","country":"cz","schedule":1669129687,"channels":{"sms":{"text":"test","variables":[],"sender_id":"gText","sender_id_value":"BulkGate","unicode":true}},"tag":"451"}',
5151
], $request->encode('application/json', ['application_id' => 5]));
5252

5353
return true;
5454
}))->andReturn(new Response('application/json', '{"data":{"status":"accepted","message_id":"sms-xxxtgkinpxu4","part_id":["sms-xxxtgkinpxu4"],"number":"420777777777","channel":"sms"}}'));
5555

5656
$sms = new Sms('420777777777', 'test');
57+
$sms->schedule = 1669129687;
5758

5859
Assert::same($sms, $this->sender->send($sms));
5960

0 commit comments

Comments
 (0)