File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
trait IssueCategoryContextTrait
11
11
{
12
+ /**
13
+ * @Given I create :count issue categories for project identifier :identifier
14
+ */
15
+ public function iCreateIssueCategoriesForProjectIdentifier (int $ count , $ identifier )
16
+ {
17
+ while ($ count > 0 ) {
18
+ $ this ->iCreateAnIssueCategoryForProjectIdentifierAndWithTheName (
19
+ $ identifier ,
20
+ 'Issue Category ' . $ count ,
21
+ );
22
+
23
+ $ count --;
24
+ }
25
+ }
26
+
12
27
/**
13
28
* @When I create an issue category for project identifier :identifier and with the name :name
14
29
*/
Original file line number Diff line number Diff line change @@ -158,6 +158,15 @@ Feature: Interacting with the REST API for issue categories
158
158
| 1 | Category name B |
159
159
| 2 | Category name A |
160
160
161
+ Scenario : Listing a lot of issue category names
162
+ Given I have a "NativeCurlClient" client
163
+ And I create a project with name "Test Project" and identifier "test-project"
164
+ And I create "108" issue categories for project identifier "test-project"
165
+ When I list all issue category names for project identifier "test-project"
166
+ Then the response has the status code "200"
167
+ And the response has the content type "application/json"
168
+ And the returned data contains "108" items
169
+
161
170
Scenario : Updating an issue category with all data
162
171
Given I have a "NativeCurlClient" client
163
172
And I create a project with name "Test Project" and identifier "test-project"
You can’t perform that action at this time.
0 commit comments