File tree 3 files changed +6
-6
lines changed
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function testToArray()
62
62
{
63
63
$ this ->assertSame (
64
64
[
65
- '@type ' => 'HttpPost ' ,
65
+ '@type ' => 'HttpPOST ' ,
66
66
],
67
67
(new HttpPostAction ())->toArray ()
68
68
);
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function testIsMultilineWithFalse()
34
34
$ input = $ this ->createInput ()
35
35
->isMultiline (false );
36
36
37
- $ this ->assertTrue ($ input ->toArray ()['isMultiline ' ]);
37
+ $ this ->assertFalse ($ input ->toArray ()['isMultiline ' ]);
38
38
}
39
39
40
40
public function testMaxLength ()
Original file line number Diff line number Diff line change @@ -135,10 +135,10 @@ public function testThemeColorViaSetter()
135
135
public function testSectionViaConstructor ()
136
136
{
137
137
$ options = new MicrosoftTeamsOptions ([
138
- 'sections ' => [ $ section = new Section ()],
138
+ 'sections ' => $ sections = [( new Section ())-> toArray ()],
139
139
]);
140
140
141
- $ this ->assertSame ([ $ section -> toArray ()] , $ options ->toArray ()['sections ' ]);
141
+ $ this ->assertSame ($ sections , $ options ->toArray ()['sections ' ]);
142
142
}
143
143
144
144
public function testSectionViaSetter ()
@@ -152,10 +152,10 @@ public function testSectionViaSetter()
152
152
public function testActionViaConstructor ()
153
153
{
154
154
$ options = new MicrosoftTeamsOptions ([
155
- 'potentialAction ' => [ $ action = (new OpenUriAction ())->toArray ()],
155
+ 'potentialAction ' => $ actions = [ (new OpenUriAction ())->toArray ()],
156
156
]);
157
157
158
- $ this ->assertSame ([ $ action -> toArray ()] , $ options ->toArray ()['potentialAction ' ]);
158
+ $ this ->assertSame ($ actions , $ options ->toArray ()['potentialAction ' ]);
159
159
}
160
160
161
161
public function testActionViaSetter ()
You can’t perform that action at this time.
0 commit comments