Skip to content

Commit 2912bfb

Browse files
Tweaks
1 parent 00d5d0f commit 2912bfb

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
lines changed

src/Api/Projects.php

+2-17
Original file line numberDiff line numberDiff line change
@@ -383,23 +383,8 @@ public function pipelines($project_id, array $parameters = [])
383383
->setAllowedValues('sort', ['asc', 'desc'])
384384
;
385385
$resolver->setDefined('source')
386-
->setAllowedValues('source', [
387-
'push',
388-
'web',
389-
'trigger',
390-
'schedule',
391-
'api',
392-
'external',
393-
'pipeline',
394-
'chat',
395-
'webide',
396-
'merge_request_event',
397-
'external_pull_request_event',
398-
'parent_pipeline',
399-
'ondemand_dast_scan',
400-
'ondemand_dast_validation',
401-
]
402-
);
386+
->setAllowedValues('source', ['push', 'web', 'trigger', 'schedule', 'api', 'external', 'pipeline', 'chat', 'webide', 'merge_request_event', 'external_pull_request_event', 'parent_pipeline', 'ondemand_dast_scan', 'ondemand_dast_validation'])
387+
;
403388

404389
return $this->get($this->getProjectPath($project_id, 'pipelines'), $resolver->resolve($parameters));
405390
}

tests/Api/ProjectsTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function shouldGetNotArchivedProjects(): void
104104

105105
/**
106106
* @test
107+
*
107108
* @dataProvider possibleAccessLevels
108109
*/
109110
public function shouldGetProjectsWithMinimumAccessLevel($level): void

tests/Api/RepositoriesTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,10 @@ public function shouldGetCommitRefs(): void
362362
}
363363

364364
/**
365-
* @dataProvider dataGetCommitRefsWithParams
366365
* @test
367366
*
367+
* @dataProvider dataGetCommitRefsWithParams
368+
*
368369
* @param string $type
369370
* @param array $expectedArray
370371
*/

tests/Api/TagsTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function shouldRemoveTag(): void
9696

9797
/**
9898
* @test
99+
*
99100
* @dataProvider releaseDataProvider
100101
*
101102
* @param string $releaseName
@@ -119,6 +120,7 @@ public function shouldCreateRelease(string $releaseName, string $description, ar
119120

120121
/**
121122
* @test
123+
*
122124
* @dataProvider releaseDataProvider
123125
*
124126
* @param string $releaseName

tests/Api/UsersTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ public static function possibleAccessLevels(): array
272272

273273
/**
274274
* @test
275+
*
275276
* @dataProvider possibleAccessLevels
276277
*/
277278
public function shouldGetProjectsWithMinimumAccessLevel($level): void
@@ -363,6 +364,7 @@ public function shouldGetOwnedUsersStarredProjects(): void
363364

364365
/**
365366
* @test
367+
*
366368
* @dataProvider possibleAccessLevels
367369
*/
368370
public function shouldGetStarredProjectsWithMinimumAccessLevel($level): void

0 commit comments

Comments
 (0)