HomePhabricator

New helper ApiTestCase::setExpectedApiException()
2f6c4da1aeadUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

New helper ApiTestCase::setExpectedApiException()

This allows setting the expected exception message by the message key,
not text, so it remains correct if the message is updated. This
function could be defined to work with other exception types too, but it
seems useful to have shortcuts for common types like ApiUsageException
or MWException.

Change-Id: Ic86278e9e1e91eea0c045d2b93342f018e1d8e66

Details

Provenance
SimetricalAuthored on Jul 31 2018, 1:19 PM
ReedyCommitted on Apr 25 2019, 2:50 PM
Parents
rMWea2f3d1c3adf: [SECURITY] [API BREAKING CHANGE] Require logout token.
Branches
Unknown
Tags
Unknown
ChangeId
Ic86278e9e1e91eea0c045d2b93342f018e1d8e66