Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd89f4b5

Browse files
committed
Fix
1 parent2e81bc1 commitd89f4b5

File tree

4 files changed

+20
-23
lines changed

4 files changed

+20
-23
lines changed

‎src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/ActivityFieldTest.php‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,33 @@ final class ActivityFieldTest extends TestCase
99
{
1010
publicfunctiontestImage()
1111
{
12-
$element = (newActivityField())
12+
$field = (newActivityField())
1313
->image($value ='https://symfony.com/logo.png');
1414

15-
$this->assertSame($value,$element->toArray()['activityImage']);
15+
$this->assertSame($value,$field->toArray()['activityImage']);
1616
}
1717

1818
publicfunctiontestTitle()
1919
{
20-
$element = (newActivityField())
20+
$field = (newActivityField())
2121
->title($value ='Symfony is great!');
2222

23-
$this->assertSame($value,$element->toArray()['activityTitle']);
23+
$this->assertSame($value,$field->toArray()['activityTitle']);
2424
}
2525

2626
publicfunctiontestSubtitle()
2727
{
28-
$element = (newActivityField())
28+
$field = (newActivityField())
2929
->subtitle($value ='I am a subtitle!');
3030

31-
$this->assertSame($value,$element->toArray()['activitySubtitle']);
31+
$this->assertSame($value,$field->toArray()['activitySubtitle']);
3232
}
3333

3434
publicfunctiontestText()
3535
{
36-
$element = (newActivityField())
36+
$field = (newActivityField())
3737
->text($value ='Text goes here');
3838

39-
$this->assertSame($value,$element->toArray()['activityText']);
39+
$this->assertSame($value,$field->toArray()['activityText']);
4040
}
4141
}

‎src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/FactFieldTest.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ final class FactFieldTest extends TestCase
1010
{
1111
publicfunctiontestName()
1212
{
13-
$element = (newFactField())
13+
$field = (newFactField())
1414
->name($value ='Current version');
1515

16-
$this->assertSame($value,$element->toArray()['name']);
16+
$this->assertSame($value,$field->toArray()['name']);
1717
}
1818

1919
publicfunctiontestTitle()
2020
{
21-
$element = (newFactField())
21+
$field = (newFactField())
2222
->value($value ='5.3');
2323

24-
$this->assertSame($value,$element->toArray()['value']);
24+
$this->assertSame($value,$field->toArray()['value']);
2525
}
2626
}

‎src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/ImageFieldTest.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ final class ImageFieldTest extends TestCase
99
{
1010
publicfunctiontestImage()
1111
{
12-
$element = (newImageField())
12+
$field = (newImageField())
1313
->image($value ='https://symfony.com/logo.png');
1414

15-
$this->assertSame($value,$element->toArray()['image']);
15+
$this->assertSame($value,$field->toArray()['image']);
1616
}
1717

1818
publicfunctiontestTitle()
1919
{
20-
$element = (newImageField())
20+
$field = (newImageField())
2121
->title($value ='Symfony is great!');
2222

23-
$this->assertSame($value,$element->toArray()['title']);
23+
$this->assertSame($value,$field->toArray()['title']);
2424
}
2525
}

‎src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/SectionTest.php‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
usePHPUnit\Framework\TestCase;
66
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\ActionCardAction;
77
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\ActionInterface;
8-
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\DateInput;
98
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\HttpPostAction;
109
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\InvokeAddInCommandAction;
11-
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\MultiChoiceInput;
1210
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\OpenUriAction;
13-
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Action\TextInput;
1411
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Section\ActivityField;
1512
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Section\FactField;
1613
useSymfony\Component\Notifier\Bridge\MicrosoftTeams\Section\ImageField;
@@ -78,12 +75,12 @@ public function testActivity()
7875

7976
publicfunctiontestImage()
8077
{
81-
$element = (newImageField())
78+
$image = (newImageField())
8279
->image($imageUrl ='https://symfony.com/logo.png')
8380
->title($title ='Symfony logo');
8481

8582
$section = (newSection())
86-
->image($element);
83+
->image($image);
8784

8885
$this->assertCount(1,$section->toArray()['images']);
8986
$this->assertSame(
@@ -96,12 +93,12 @@ public function testImage()
9693

9794
publicfunctiontestFact()
9895
{
99-
$element = (newFactField())
96+
$fact = (newFactField())
10097
->name($name ='Current version')
10198
->value($value ='5.3');
10299

103100
$section = (newSection())
104-
->fact($element);
101+
->fact($fact);
105102

106103
$this->assertCount(1,$section->toArray()['facts']);
107104
$this->assertSame(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp