MantisBT: master dc3361c7

Author Committer Branch Timestamp Parent
dregad dregad master 2023-08-06 05:39 master 42c7a65a
Affected Issues  0032804: REST API unit test incorrectly failing with anonymous user
Changeset

Tests: Fix testProjectDeleteVersionAnonymous

  • Incorrect assertion: when updating a version as anonymous user, the
    API returns 403, not 401. The latter occurs when anonymous account
    is not valid.
  • Skip the test when anonymous login is disabled

Add assertion messages.

Fixes 0032804

mod - tests/rest/RestProjectVersionTests.php Diff File