4
4
5
5
use LINE \Clients \MessagingApi \Api \MessagingApiApi ;
6
6
use LINE \Clients \MessagingApi \Model \QuickReply ;
7
+ use LINE \Clients \MessagingApi \Model \ReplyMessageResponse ;
7
8
use LINE \Clients \MessagingApi \Model \TextMessage ;
8
9
use LINE \Constants \MessageType ;
9
10
use Mockery as m ;
@@ -22,7 +23,8 @@ public function testReplyMessage()
22
23
{
23
24
$ this ->mock (MessagingApiApi::class, function ($ mock ) {
24
25
$ mock ->shouldReceive ('replyMessage ' )
25
- ->once ();
26
+ ->once ()
27
+ ->andReturn (new ReplyMessageResponse ());
26
28
});
27
29
28
30
Bot::reply ('token ' )
@@ -33,6 +35,7 @@ public function testReplyText()
33
35
{
34
36
$ this ->mock (MessagingApiApi::class, function ($ mock ) {
35
37
$ mock ->shouldReceive ('replyMessage ' )
38
+ ->andReturn (new ReplyMessageResponse ())
36
39
->once ();
37
40
});
38
41
@@ -43,6 +46,7 @@ public function testReplyTextWith()
43
46
{
44
47
$ this ->mock (MessagingApiApi::class, function ($ mock ) {
45
48
$ mock ->shouldReceive ('replyMessage ' )
49
+ ->andReturn (new ReplyMessageResponse ())
46
50
->once ();
47
51
});
48
52
@@ -56,6 +60,7 @@ public function testReplySticker()
56
60
{
57
61
$ this ->mock (MessagingApiApi::class, function ($ mock ) {
58
62
$ mock ->shouldReceive ('replyMessage ' )
63
+ ->andReturn (new ReplyMessageResponse ())
59
64
->once ();
60
65
});
61
66
0 commit comments