Skip to content

Commit 3a216e8

Browse files
committed
Improve tests, update CHANGELOG.md
1 parent 8194bd1 commit 3a216e8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- New method `Redmine\Api\Group::listNames()` for listing the ids and names of all groups.
13+
- New method `Redmine\Api\IssueCategory::listNamesByProject()` for listing the ids and names of all issue categories of a project.
1314

1415
### Deprecated
1516

1617
- `Redmine\Api\Group::listing()` is deprecated, use `\Redmine\Api\Group::listNames()` instead.
18+
- `Redmine\Api\IssueCategory::listing()` is deprecated, use `\Redmine\Api\IssueCategory::listNamesByProject()` instead.
1719

1820
## [v2.6.0](https://github.com/kbsali/php-redmine-api/compare/v2.5.0...v2.6.0) - 2024-03-25
1921

tests/Unit/Api/IssueCategory/ListNamesByProjectTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ public static function getListNamesByProjectData(): array
6363
<<<JSON
6464
{
6565
"issue_categories": [
66-
{"id": 9, "name": "IssueCategory 1"},
66+
{"id": 7, "name": "IssueCategory 3"},
6767
{"id": 8, "name": "IssueCategory 2"},
68-
{"id": 7, "name": "IssueCategory 3"}
68+
{"id": 9, "name": "IssueCategory 1"}
6969
]
7070
}
7171
JSON,
7272
[
73-
9 => "IssueCategory 1",
74-
8 => "IssueCategory 2",
7573
7 => "IssueCategory 3",
74+
8 => "IssueCategory 2",
75+
9 => "IssueCategory 1",
7676
],
7777
],
7878
];

0 commit comments

Comments
 (0)