File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
src/Symfony/Component/Notifier/Bridge Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function testLinkedInOptions()
38
38
39
39
public function testLinkedInOptionsWithAllMethods ()
40
40
{
41
- $ author = new AuthorShare ('urn:li:person: 123456 ' );
41
+ $ author = new AuthorShare ('123456 ' );
42
42
$ lifecycleState = new LifecycleStateShare ('PUBLISHED ' );
43
43
$ visibility = new VisibilityShare ();
44
44
$ specificContent = new ShareContentShare ('Test content ' );
@@ -64,6 +64,7 @@ public function testLinkedInOptionsWithAllMethods()
64
64
'specificContent ' => [
65
65
'com.linkedin.ugc.ShareContent ' => [
66
66
'shareCommentary ' => [
67
+ 'attributes ' => [],
67
68
'text ' => 'Test content ' ,
68
69
],
69
70
'shareMediaCategory ' => 'NONE ' ,
@@ -90,6 +91,7 @@ public function testFromNotification()
90
91
'specificContent ' => [
91
92
'com.linkedin.ugc.ShareContent ' => [
92
93
'shareCommentary ' => [
94
+ 'attributes ' => [],
93
95
'text ' => 'Test Content ' ,
94
96
],
95
97
'shareMediaCategory ' => 'NONE ' ,
@@ -114,6 +116,7 @@ public function testFromNotificationWithoutContent()
114
116
'specificContent ' => [
115
117
'com.linkedin.ugc.ShareContent ' => [
116
118
'shareCommentary ' => [
119
+ 'attributes ' => [],
117
120
'text ' => 'Test Subject Only ' ,
118
121
],
119
122
'shareMediaCategory ' => 'NONE ' ,
Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ public function testRocketChatOptionsWithChannel()
40
40
$ options = (new RocketChatOptions ())
41
41
->channel ('#general ' );
42
42
43
- $ this ->assertSame ([
44
- 'attachments ' => [[]],
45
- ], $ options ->toArray ());
43
+ $ this ->assertSame ([], $ options ->toArray ());
46
44
47
45
$ this ->assertSame ('#general ' , $ options ->getRecipientId ());
48
46
}
@@ -98,8 +96,6 @@ public function testEmptyAttachments()
98
96
{
99
97
$ options = new RocketChatOptions ();
100
98
101
- $ this ->assertSame ([
102
- 'attachments ' => [[]],
103
- ], $ options ->toArray ());
99
+ $ this ->assertSame ([], $ options ->toArray ());
104
100
}
105
101
}
Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \Attributes \DataProvider ;
15
15
use PHPUnit \Framework \TestCase ;
16
- use Symfony \Component \Notifier \Bridge \Telegram \Reply \Markup \InlineKeyboardButton ;
16
+ use Symfony \Component \Notifier \Bridge \Telegram \Reply \Markup \Button \ InlineKeyboardButton ;
17
17
use Symfony \Component \Notifier \Bridge \Telegram \Reply \Markup \InlineKeyboardMarkup ;
18
18
use Symfony \Component \Notifier \Bridge \Telegram \TelegramOptions ;
19
19
@@ -120,7 +120,7 @@ public function testWithReplyMarkup()
120
120
$ button2 ->callbackData ('callback_2 ' );
121
121
122
122
$ markup = new InlineKeyboardMarkup ();
123
- $ markup ->addRow ([$ button1 , $ button2 ]);
123
+ $ markup ->inlineKeyboard ([$ button1 , $ button2 ]);
124
124
125
125
$ options = (new TelegramOptions ())
126
126
->chatId ('123456 ' )
You can’t perform that action at this time.
0 commit comments