Page MenuHomePhabricator

Make ApiFunctionCallTest Compare Errors
Open, LowPublic

Description

ApiFunctionCallTest does not currently check that the correct error was raised. This is currently relevant in one test.

Event Timeline

Change #1311822 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Add orchestratorHttpStatusCode to the ApiFunctionCall payload

https://gerrit.wikimedia.org/r/1311822

Change #1311822 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add orchestratorHttpStatusCode to the ApiFunctionCall payload

https://gerrit.wikimedia.org/r/1311822

Now partially done, but still:

tests/phpunit/integration/PublicAPI/PublicApiRunTest.php
62:	// TODO (T314609): Also test error cases.
107:	// TODO (T314609): Also test that metadata has correct keys.

tests/phpunit/integration/ActionAPI/ApiFunctionCallTest.php
231:	// TODO (T314609): Also test that metadata has correct keys.
284:	// (T314609) Orchestrator error cases