File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,19 @@ public function shouldGetNotArchivedProjects()
82
82
$ this ->assertEquals ($ expectedArray , $ api ->all (['archived ' => false ]));
83
83
}
84
84
85
+ /**
86
+ * @test
87
+ * @dataProvider possibleAccessLevels
88
+ */
89
+ public function shouldGetProjectsWithMinimumAccessLevel ($ level )
90
+ {
91
+ $ expectedArray = $ this ->getMultipleProjectsData ();
92
+
93
+ $ api = $ this ->getMultipleProjectsRequestMock ('projects ' , $ expectedArray , ['min_access_level ' => $ level ]);
94
+
95
+ $ this ->assertEquals ($ expectedArray , $ api ->all (['min_access_level ' => $ level ]));
96
+ }
97
+
85
98
/**
86
99
* @test
87
100
*/
@@ -1461,6 +1474,17 @@ protected function getMultipleProjectsData()
1461
1474
);
1462
1475
}
1463
1476
1477
+ public function possibleAccessLevels ()
1478
+ {
1479
+ return [
1480
+ [10 ],
1481
+ [20 ],
1482
+ [30 ],
1483
+ [40 ],
1484
+ [50 ],
1485
+ ];
1486
+ }
1487
+
1464
1488
protected function getApiClass ()
1465
1489
{
1466
1490
return 'Gitlab\Api\Projects ' ;
You can’t perform that action at this time.
0 commit comments