1414
1515namespace Gitlab \Tests \Api ;
1616
17- use PHPUnit \Framework \Attributes \Test ;
1817use Gitlab \Api \GroupsMilestones ;
19- use PHPUnit \Framework \Attributes \Test ;
2018use PHPUnit \Framework \Attributes \DataProvider ;
19+ use PHPUnit \Framework \Attributes \Test ;
20+ use PHPUnit \Framework \Attributes \Test ;
2121
2222class 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