Skip to content

Commit 328c3f6

Browse files
committedNov 17, 2024·
Update ReplyMessageTest.php
1 parent d65940d commit 328c3f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎tests/Messaging/ReplyMessageTest.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use LINE\Clients\MessagingApi\Api\MessagingApiApi;
66
use LINE\Clients\MessagingApi\Model\QuickReply;
7+
use LINE\Clients\MessagingApi\Model\ReplyMessageResponse;
78
use LINE\Clients\MessagingApi\Model\TextMessage;
89
use LINE\Constants\MessageType;
910
use Mockery as m;
@@ -22,7 +23,8 @@ public function testReplyMessage()
2223
{
2324
$this->mock(MessagingApiApi::class, function ($mock) {
2425
$mock->shouldReceive('replyMessage')
25-
->once();
26+
->once()
27+
->andReturn(new ReplyMessageResponse());
2628
});
2729

2830
Bot::reply('token')
@@ -33,6 +35,7 @@ public function testReplyText()
3335
{
3436
$this->mock(MessagingApiApi::class, function ($mock) {
3537
$mock->shouldReceive('replyMessage')
38+
->andReturn(new ReplyMessageResponse())
3639
->once();
3740
});
3841

@@ -43,6 +46,7 @@ public function testReplyTextWith()
4346
{
4447
$this->mock(MessagingApiApi::class, function ($mock) {
4548
$mock->shouldReceive('replyMessage')
49+
->andReturn(new ReplyMessageResponse())
4650
->once();
4751
});
4852

@@ -56,6 +60,7 @@ public function testReplySticker()
5660
{
5761
$this->mock(MessagingApiApi::class, function ($mock) {
5862
$mock->shouldReceive('replyMessage')
63+
->andReturn(new ReplyMessageResponse())
5964
->once();
6065
});
6166

0 commit comments

Comments
 (0)
Please sign in to comment.