View Issue Details

IDProjectCategoryView StatusLast Update
0022001mantisbtapi soappublic2018-03-31 20:06
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version1.2.0 
Summary0022001: FilterTest::testGetProjectClosedIssues should fail but does not
Description

The test verifies that mc_project_get_issues() works properly by comparing the number of issues returned before and after creating a new issue with closed status.

It currently (confirmed with 2.0.x/0c990fea7) succeeds despite the fact that closed issues are NOT returned by mc_project_get_issues() unless $g_hide_status_default == META_FILTER_NONE.

The reason for the false positive is that the test issue created in the unit test [1] is in fact NOT created with status 'closed'.

[1] https://github.com/mantisbt/mantisbt/blob/release-2.0.0-rc.2/tests/soap/FilterTest.php#L350

TagsNo tags attached.

Relationships

related to 0021996 feedback Service mc_project_get_issues not return closed issues 
related to 0010969 closedrombert The issue closed can not be found by mc_project_get_issues API? 

Activities

dregad

dregad

2016-12-01 12:00

developer   ~0054656

PR https://github.com/mantisbt/mantisbt/pull/965

Note that this will cause the PHPUnit tests to fail with default settings for $g_hide_status_default, until 0021996 has been fixed.