8000 fix · symfony/symfony@a3e9511 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3e9511

Browse files
committed
fix
1 parent d0a532c commit a3e9511

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/HttpPostActionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testToArray()
6262
{
6363
$this->assertSame(
6464
[
65-
'@type' => 'HttpPost',
65+
'@type' => 'HttpPOST',
6666
],
6767
(new HttpPostAction())->toArray()
6868
);

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Input/TextInputTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testIsMultilineWithFalse()
3434
$input = $this->createInput()
3535
->isMultiline(false);
3636

37-
$this->assertTrue($input->toArray()['isMultiline']);
37+
$this->assertFalse($input->toArray()['isMultiline']);
3838
}
3939

4040
public function testMaxLength()

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsOptionsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ public function testThemeColorViaSetter()
135135
public function testSectionViaConstructor()
136136
{
137137
$options = new MicrosoftTeamsOptions([
138-
'sections' => [$section = new Section()],
138+
'sections' => $sections = [(new Section())->toArray()],
139139
]);
140140

141-
$this->assertSame([$section->toArray()], $options->toArray()['sections']);
141+
$this->assertSame($sections, $options->toArray()['sections']);
142142
}
143143

144144
public function testSectionViaSetter()
@@ -152,10 +152,10 @@ public function testSectionViaSetter()
152152
public function testActionViaConstructor()
153153
{
154154
$options = new MicrosoftTeamsOptions([
155-
'potentialAction' => [$action = (new OpenUriAction())->toArray()],
155+
'potentialAction' => $actions = [(new OpenUriAction())->toArray()],
156156
]);
157157

158-
$this->assertSame([$action->toArray()], $options->toArray()['potentialAction']);
158+
$this->assertSame($actions, $options->toArray()['potentialAction']);
159159
}
160160

161161
public function testActionViaSetter()

0 commit comments

Comments
 (0)
0