View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034379 | mantisbt | code cleanup | public | 2024-03-29 21:53 | 2024-09-29 13:15 |
Reporter | hotzeplotz | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 2.27.0 | Fixed in Version | 2.27.0 | ||
Summary | 0034379: Modernizing Tests (partially tests/Mantis) | ||||
Description | At first focusing on tests/Mantis. Tests for Helper
Not sure how many could easily created, but will try to cover helper_api. FixingFound at least one bug in ConfigParserTest. Arguments for
ModernizingNamespaces and autoload
From:
To:
PHP language level
| ||||
Tags | No tags attached. | ||||
MantisBT: master 4e60470b 2024-03-31 06:56 grummbeer Committer: community Details Diff |
ConfigParserTest: swap assertEquals arguments Fix wrong order of arguments for assertEquals(): expected value comes first, actual value second. Issue 0034379 Signed-off-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0034379 |
|
mod - tests/Mantis/ConfigParserTest.php | Diff File | ||
MantisBT: master aa93edbf 2024-03-31 09:45 grummbeer Committer: community Details Diff |
Add test for helper_api::helper_get_link_attributes Issue 0034379, PR https://github.com/mantisbt/mantisbt/pull/1983 Co-authored-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0034379 |
|
add - tests/Mantis/Helper/GetLinkAttributesTest.php | Diff File | ||
MantisBT: master be443604 2024-04-01 04:45 grummbeer Committer: dregad Details Diff |
Improve ArrayTransposeTest - Update array syntax from array() to [] - Add type hints and add declare(strict_types=1); - Use the Generator syntax to yield the samples instead of creating an array first. - Change assertEquals to assertSame to be more strict. Fixes 0034379, PR https://github.com/mantisbt/mantisbt/pull/1985 Signed-off-by: Damien Regad <dregad@mantisbt.org> Separated Move and Rename operations into distinct commits for better continuity in Git history. |
Affected Issues 0034379 |
|
mod - tests/Mantis/Helper/ArrayTransposeTest.php | Diff File | ||
MantisBT: master c4011982 2024-04-02 17:45 Details Diff |
Rename HelperTest to ArrayTransposeTest Issue 0034379 |
Affected Issues 0034379 |
|
mv - tests/Mantis/HelperTest.php → tests/Mantis/ArrayTransposeTest.php | Diff File | ||
MantisBT: master 62ead2c4 2024-04-02 17:48 Details Diff |
Move ArrayTransposeTest to tests/Mantis/Helper Issue 0034379 |
Affected Issues 0034379 |
|
mv - tests/Mantis/ArrayTransposeTest.php → tests/Mantis/Helper/ArrayTransposeTest.php | Diff File |