mediawiki-extensions-Visual.../tests/phpunit/integration
Bartosz Dziewoński ca64e7e407 ApiParsoidTrait/DirectParsoidClient: Simplify error handling
After catching the REST exception, just throw an API exception.
Remove the step inbetween where we built a response array.

Bonus:
* Remove tests that only tested this array building.
* Remove the unused 'code' from successful responses, and update
  documentation of return value shapes.
* Remove impossible check for `$ex instanceof LocalizedException`.
  After moving the code into one place, it's obvious that it can't
  happen, since LocalizedException doesn't inherit from HttpException.

Bug: T341613
Change-Id: I31370efeed9d5283b53eafca102b2f1efc811d27
2023-08-16 17:09:18 +02:00
..
DirectParsoidClientTest.php ApiParsoidTrait/DirectParsoidClient: Simplify error handling 2023-08-16 17:09:18 +02:00
HooksTest.php Remove VirtualRESTService code from VisualEditor 2023-07-11 19:38:05 +02:00
VisualEditorParsoidClientFactoryTest.php Remove DualParsoidClient::class and related code from VE (p.2) 2023-07-25 09:01:44 +00:00