Dependency Graph
View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033098 | mantisbt | tools | public | 2023-11-04 07:16 | 2024-04-09 06:36 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Target Version | 2.27.0 | Fixed in Version | 2.27.0 | ||
Summary | 0033098: Ugrade to PHPUnit 9.6 and adapt test suite | ||||
Description | We currently use PHPUnit 8.5, which supports PHP 7.2 and later so we can continue using it for now, but is is no longer maintained since February 3, 2023. Our minimum PHP version is now 7.4 (see 0032808), so we should upgrade PHPUnit to 9.6. There are some breaking changes that need to be reviewed to determine whether our test scripts need to be adapted.. | ||||
Tags | No tags attached. | ||||
Tests seem to run fine, with some warnings
There were 15 warnings: 1) MantisHelperTest::testArrayTransposeInvalid with data set "Simple array" (array(1, 2)) 2) MantisHelperTest::testArrayTransposeInvalid with data set "Mixed, "non-square" array" (array(array(1, 2), 123)) 3) AttachmentTest::testIssueAttachmentNotFound 4) AttachmentTest::testProjectAttachmentNotFound 5) FilterTest::testFilterGetIssuesReturnsIssueMonitors 6) LoginTest::testLoginFailed 7) LoginTest::testGetIssueGetLoginFailed 8) LoginTest::testProjectGetUsersLoginFailed 9) LoginTest::testGetEnumStatusLoginFailed 10) LoginTest::testProjectGetIssuesLoginFailed 11) LoginTest::testFilterGetIssuesLoginFailed 12) LoginTest::testLoginWithNullPasswordIsRejected 13) LoginTest::testLoginWithEmptyPasswordIsRejected 14) LoginTest::testLoginWithIncorrectPasswordIsRejected 15) RelationshipTest::testDeleteRelation WARNINGS! |
|
PR (work-in-progress) https://github.com/mantisbt/mantisbt/pull/1936 |
|
Bump to 9.6.17 - PR https://github.com/mantisbt/mantisbt/pull/1973 |
|
Bump to 9.6.18 - PR https://github.com/mantisbt/mantisbt/pull/1980 |
|
MantisBT: master 658e3a64 2024-02-22 05:22 Details Diff |
Upgrade to PHPUnit 9.6 - Update minimum version in composer.json - Minor adjustments to the test suite, fixing deprecation warnings. Fixes 0033098, PR https://github.com/mantisbt/mantisbt/pull/1936 |
Affected Issues 0033098 |
|
mod - composer.json | Diff File | ||
mod - composer.lock | Diff File | ||
mod - core/helper_api.php | Diff File | ||
mod - tests/Mantis/ConfigParserTest.php | Diff File | ||
mod - tests/Mantis/HelperTest.php | Diff File | ||
mv - tests/Mantis/EnumTest.php → tests/Mantis/MantisEnumTest.php | Diff File | ||
mod - tests/Mantis/PluginTest.php | Diff File | ||
mod - tests/Mantis/PrepareTest.php | Diff File | ||
mod - tests/Mantis/StringTest.php | Diff File | ||
mv - tests/Mantis/UserTest.php → tests/Mantis/UserApiTest.php | Diff File | ||
mod - tests/rest/RestImpersonateUserTest.php | Diff File | ||
mod - tests/rest/RestUserTest.php | Diff File | ||
mod - tests/soap/AttachmentTest.php | Diff File | ||
mod - tests/soap/FilterTest.php | Diff File | ||
mod - tests/soap/LoginTest.php | Diff File | ||
mod - tests/soap/RelationshipTest.php | Diff File | ||
MantisBT: master cc2b4297 2024-02-26 02:20 dependabot[bot] Committer: community Details Diff |
Bump phpunit/phpunit from 9.6.16 to 9.6.17 (0001973) Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.16 to 9.6.17. - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.17/ChangeLog-9.6.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.16...9.6.17) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Fixes 0033098, PR https://github.com/mantisbt/mantisbt/pull/1973 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
Affected Issues 0033098 |
|
mod - composer.lock | Diff File | ||
MantisBT: master 6ddc26bd 2024-03-16 20:28 Details Diff |
PHPUnit: class not matching filename is deprecated Fixes 0033098 |
Affected Issues 0033098 |
|
mod - plugins/MantisCoreFormatting/tests/MarkdownTest.php | Diff File | ||
MantisBT: master 2fa53ca7 2024-03-24 05:04 dependabot[bot] Committer: community Details Diff |
Bump phpunit/phpunit from 9.6.17 to 9.6.18 Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.17 to 9.6.18. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.18/ChangeLog-9.6.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.17...9.6.18) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Fixes 0033098 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
Affected Issues 0033098 |
|
mod - composer.lock | Diff File | ||
MantisBT: master 756874c6 2024-04-09 06:35 dependabot[bot] Committer: community Details Diff |
Bump phpunit/phpunit from 9.6.18 to 9.6.19 (#1990) Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.18 to 9.6.19. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.19/ChangeLog-9.6.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.18...9.6.19) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Fixes 0033098, PR https://github.com/mantisbt/mantisbt/pull/1990 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
Affected Issues 0033098 |
|
mod - composer.lock | Diff File |