Skip to content

Commit c597d3a

Browse files
committed
Apply fixes from StyleCI
1 parent 15afa14 commit c597d3a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+500
-68
lines changed

tests/Api/DeployKeysTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
namespace Gitlab\Tests\Api;
1616

17-
use PHPUnit\Framework\Attributes\Test;
1817
use Gitlab\Api\DeployKeys;
18+
use PHPUnit\Framework\Attributes\Test;
1919

2020
class DeployKeysTest extends TestCase
2121
{

tests/Api/DeploymentsTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
namespace Gitlab\Tests\Api;
1616

17-
use PHPUnit\Framework\Attributes\Test;
1817
use Gitlab\Api\Deployments;
18+
use PHPUnit\Framework\Attributes\Test;
1919

2020
class DeploymentsTest extends TestCase
2121
{
@@ -28,6 +28,7 @@ public function shouldGetAllDeployments(): void
2828

2929
$this->assertEquals($expectedArray, $api->all(1));
3030
}
31+
3132
#[Test]
3233
public function shouldShowDeployment(): void
3334
{
@@ -250,6 +251,7 @@ protected function getMultipleDeploymentsRequestMock(string $path, array $expect
250251

251252
return $api;
252253
}
254+
253255
#[Test]
254256
public function shouldGetAllDeploymentsSortedByCreatedAt(): void
255257
{
@@ -271,6 +273,7 @@ protected function getApiClass()
271273
{
272274
return Deployments::class;
273275
}
276+
274277
#[Test]
275278
public function shouldAllowDeploymentFilterByStatus(): void
276279
{
@@ -287,6 +290,7 @@ public function shouldAllowDeploymentFilterByStatus(): void
287290
$api->all(1, ['status' => 'success'])
288291
);
289292
}
293+
290294
#[Test]
291295
public function shouldAllowFilterByEnvironment(): void
292296
{
@@ -303,6 +307,7 @@ public function shouldAllowFilterByEnvironment(): void
303307
$api->all(1, ['environment' => 'production'])
304308
);
305309
}
310+
306311
#[Test]
307312
public function shouldAllowEmptyArrayIfAllExcludedByFilter(): void
308313
{

tests/Api/EnvironmentsTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
namespace Gitlab\Tests\Api;
1616

17-
use PHPUnit\Framework\Attributes\Test;
1817
use Gitlab\Api\Environments;
18+
use PHPUnit\Framework\Attributes\Test;
1919

2020
class EnvironmentsTest extends TestCase
2121
{
@@ -63,6 +63,7 @@ public function shouldFilterEnvironmentByName(): void
6363
->willReturn($expected);
6464
$this->assertEquals($expected, $api->all(1, ['name' => 'review/fix-bar']));
6565
}
66+
6667
#[Test]
6768
public function shouldGetSingleEnvironment(): void
6869
{
@@ -139,6 +140,7 @@ public function shouldGetSingleEnvironment(): void
139140
->willReturn($expected);
140141
$this->assertEquals($expected, $api->show(1, 1));
141142
}
143+
142144
#[Test]
143145
public function shouldCreateEnvironment(): void
144146
{
@@ -166,6 +168,7 @@ public function shouldCreateEnvironment(): void
166168

167169
$this->assertEquals($expectedArray, $api->create(1, $params));
168170
}
171+
169172
#[Test]
170173
public function shouldRemoveEnvironment(): void
171174
{
@@ -178,6 +181,7 @@ public function shouldRemoveEnvironment(): void
178181
->willReturn($expectedBool);
179182
$this->assertEquals($expectedBool, $api->remove(1, 3));
180183
}
184+
181185
#[Test]
182186
public function shouldStopEnvironment(): void
183187
{

tests/Api/EventsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313

1414
namespace Gitlab\Tests\Api;
1515

16-
use PHPUnit\Framework\Attributes\Test;
1716
use Gitlab\Api\Events;
17+
use PHPUnit\Framework\Attributes\Test;
1818

1919
class EventsTest extends TestCase
2020
{
2121
protected function getApiClass()
2222
{
2323
return Events::class;
2424
}
25+
2526
#[Test]
2627
public function shouldGetAllEvents(): void
2728
{
@@ -39,6 +40,7 @@ public function shouldGetAllEvents(): void
3940

4041
$this->assertEquals($expectedArray, $api->all());
4142
}
43+
4244
#[Test]
4345
public function shouldGetEventsAfter(): void
4446
{

tests/Api/GroupBoardsTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
namespace Gitlab\Tests\Api;
1616

17-
use PHPUnit\Framework\Attributes\Test;
1817
use Gitlab\Api\GroupsBoards;
18+
use PHPUnit\Framework\Attributes\Test;
1919

2020
class GroupBoardsTest extends TestCase
2121
{
@@ -36,6 +36,7 @@ public function shouldGetAllBoards(): void
3636

3737
$this->assertEquals($expectedArray, $api->all());
3838
}
39+
3940
#[Test]
4041
public function shouldShowIssueBoard(): void
4142
{
@@ -50,6 +51,7 @@ public function shouldShowIssueBoard(): void
5051

5152
$this->assertEquals($expectedArray, $api->show(1, 2));
5253
}
54+
5355
#[Test]
5456
public function shouldCreateIssueBoard(): void
5557
{
@@ -64,6 +66,7 @@ public function shouldCreateIssueBoard(): void
6466

6567
$this->assertEquals($expectedArray, $api->create(1, ['name' => 'A new issue board']));
6668
}
69+
6770
#[Test]
6871
public function shouldUpdateIssueBoard(): void
6972
{
@@ -78,6 +81,7 @@ public function shouldUpdateIssueBoard(): void
7881

7982
$this->assertEquals($expectedArray, $api->update(1, 2, ['name' => 'A renamed issue board', 'labels' => 'foo']));
8083
}
84+
8185
#[Test]
8286
public function shouldRemoveIssueBoard(): void
8387
{
@@ -91,6 +95,7 @@ public function shouldRemoveIssueBoard(): void
9195

9296
$this->assertEquals($expectedBool, $api->remove(1, 2));
9397
}
98+
9499
#[Test]
95100
public function shouldGetAllLists(): void
96101
{
@@ -123,6 +128,7 @@ public function shouldGetAllLists(): void
123128

124129
$this->assertEquals($expectedArray, $api->allLists(1, 2));
125130
}
131+
126132
#[Test]
127133
public function shouldGetList(): void
128134
{
@@ -147,6 +153,7 @@ public function shouldGetList(): void
147153

148154
$this->assertEquals($expectedArray, $api->showList(1, 2, 3));
149155
}
156+
150157
#[Test]
151158
public function shouldCreateList(): void
152159
{
@@ -171,6 +178,7 @@ public function shouldCreateList(): void
171178

172179
$this->assertEquals($expectedArray, $api->createList(1, 2, 4));
173180
}
181+
174182
#[Test]
175183
public function shouldUpdateList(): void
176184
{
@@ -195,6 +203,7 @@ public function shouldUpdateList(): void
195203

196204
$this->assertEquals($expectedArray, $api->updateList(5, 2, 3, 1));
197205
}
206+
198207
#[Test]
199208
public function shouldDeleteList(): void
200209
{

tests/Api/GroupsEpicsTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
namespace Gitlab\Tests\Api;
1616

17-
use PHPUnit\Framework\Attributes\Test;
1817
use Gitlab\Api\GroupsEpics;
18+
use PHPUnit\Framework\Attributes\Test;
1919

2020
class GroupsEpicsTest extends TestCase
2121
{
@@ -36,6 +36,7 @@ public function shouldGetAllEpics(): void
3636

3737
$this->assertEquals($expectedArray, $api->all(1));
3838
}
39+
3940
#[Test]
4041
public function shouldShowEpic(): void
4142
{
@@ -50,6 +51,7 @@ public function shouldShowEpic(): void
5051

5152
$this->assertEquals($expectedArray, $api->show(1, 2));
5253
}
54+
5355
#[Test]
5456
public function shouldCreateEpic(): void
5557
{
@@ -64,6 +66,7 @@ public function shouldCreateEpic(): void
6466

6567
$this->assertEquals($expectedArray, $api->create(1, ['description' => 'Some text', 'title' => 'A new epic']));
6668
}
69+
6770
#[Test]
6871
public function shouldUpdateEpic(): void
6972
{
@@ -78,6 +81,7 @@ public function shouldUpdateEpic(): void
7881

7982
$this->assertEquals($expectedArray, $api->update(1, 3, ['title' => 'Updated epic', 'description' => 'Updated description', 'state_event' => 'close']));
8083
}
84+
8185
#[Test]
8286
public function shouldRemoveEpic(): void
8387
{
@@ -91,6 +95,7 @@ public function shouldRemoveEpic(): void
9195

9296
$this->assertEquals($expectedBool, $api->remove(1, 2));
9397
}
98+
9499
#[Test]
95100
public function shouldGetEpicsIssues(): void
96101
{

tests/Api/GroupsMilestonesTest.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
namespace Gitlab\Tests\Api;
1616

17-
use PHPUnit\Framework\Attributes\Test;
1817
use Gitlab\Api\GroupsMilestones;
19-
use PHPUnit\Framework\Attributes\Test;
2018
use PHPUnit\Framework\Attributes\DataProvider;
19+
use PHPUnit\Framework\Attributes\Test;
20+
use PHPUnit\Framework\Attributes\Test;
2121

2222
class GroupsMilestonesTest extends TestCase
2323
{
@@ -38,6 +38,7 @@ public function shouldGetAllMilestones(): void
3838

3939
$this->assertEquals($expectedArray, $api->all(1));
4040
}
41+
4142
#[Test]
4243
public function shouldGetAllMilestonesWithParameterOneIidsValue(): void
4344
{
@@ -49,6 +50,7 @@ public function shouldGetAllMilestonesWithParameterOneIidsValue(): void
4950

5051
$api->all(1, ['iids' => [456]]);
5152
}
53+
5254
#[Test]
5355
public function shouldGetAllMilestonesWithParameterTwoIidsValues(): void
5456
{
@@ -68,6 +70,7 @@ public static function getAllMilestonesWithParameterStateDataProvider()
6870
GroupsMilestones::STATE_CLOSED => [GroupsMilestones::STATE_CLOSED],
6971
];
7072
}
73+
7174
#[Test]
7275
#[DataProvider('getAllMilestonesWithParameterStateDataProvider')]
7376
public function shouldGetAllMilestonesWithParameterState(string $state): void
@@ -80,6 +83,7 @@ public function shouldGetAllMilestonesWithParameterState(string $state): void
8083

8184
$api->all(1, ['state' => $state]);
8285
}
86+
8387
#[Test]
8488
public function shouldGetAllMilestonesWithParameterSearch(): void
8589
{
@@ -93,6 +97,7 @@ public function shouldGetAllMilestonesWithParameterSearch(): void
9397

9498
$api->all(1, ['search' => $searchValue]);
9599
}
100+
96101
#[Test]
97102
public function shouldGetAllMilestonesWithParameterUpdatedBefore(): void
98103
{
@@ -106,6 +111,7 @@ public function shouldGetAllMilestonesWithParameterUpdatedBefore(): void
106111

107112
$api->all(1, ['updated_before' => $updatedBefore]);
108113
}
114+
109115
#[Test]
110116
public function shouldGetAllMilestonesWithParameterUpdatedAfter(): void
111117
{
@@ -119,6 +125,7 @@ public function shouldGetAllMilestonesWithParameterUpdatedAfter(): void
119125

120126
$api->all(1, ['updated_after' => $updatedAfter]);
121127
}
128+
122129
#[Test]
123130
public function shouldShowMilestone(): void
124131
{
@@ -133,6 +140,7 @@ public function shouldShowMilestone(): void
133140

134141
$this->assertEquals($expectedArray, $api->show(1, 2));
135142
}
143+
136144
#[Test]
137145
public function shouldCreateMilestone(): void
138146
{
@@ -147,6 +155,7 @@ public function shouldCreateMilestone(): void
147155

148156
$this->assertEquals($expectedArray, $api->create(1, ['description' => 'Some text', 'title' => 'A new milestone']));
149157
}
158+
150159
#[Test]
151160
public function shouldUpdateMilestone(): void
152161
{
@@ -161,6 +170,7 @@ public function shouldUpdateMilestone(): void
161170

162171
$this->assertEquals($expectedArray, $api->update(1, 3, ['title' => 'Updated milestone', 'due_date' => '2015-04-01', 'state_event' => 'close']));
163172
}
173+
164174
#[Test]
165175
public function shouldRemoveMilestone(): void
166176
{
@@ -174,6 +184,7 @@ public function shouldRemoveMilestone(): void
174184

175185
$this->assertEquals($expectedBool, $api->remove(1, 2));
176186
}
187+
177188
#[Test]
178189
public function shouldGetMilestonesIssues(): void
179190
{
@@ -191,6 +202,7 @@ public function shouldGetMilestonesIssues(): void
191202

192203
$this->assertEquals($expectedArray, $api->issues(1, 3));
193204
}
205+
194206
#[Test]
195207
public function shouldGetMilestonesMergeRequests(): void
196208
{

0 commit comments

Comments
 (0)