API: Fix ApiMainTest::testExceptionErrors and use $wgShowDBErrorBacktrace
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 22 Feb 2017 01:27:17 +0000 (20:27 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 22 Feb 2017 01:29:06 +0000 (20:29 -0500)
commitb18c6bcaeebb0655fa2cd1c82c85218fe3db1af4
treeb80ca69a1df988e59cb12ff1ef81a16e5c66bdd5
parent9976107c450f3c30fb89138d887f55ad981b217a
API: Fix ApiMainTest::testExceptionErrors and use $wgShowDBErrorBacktrace

Apparently Jenkins sets $wgShowExceptionDetails to true but travis
doesn't. The test should make sure it's set since it depends on it.

And apparently no one ever added $wgShowDBErrorBacktrace to the API.
Let's do that too.

Change-Id: I0793eda349426b265a47900cdeb87bb920b5c291
includes/api/ApiMain.php
tests/phpunit/includes/api/ApiMainTest.php