X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiMainTest.php;h=20d758e3aa70ae737dadcbf7cf6173b5e143a8b3;hb=9f6c47e7460e2e94fa9d815ef243bf1858cb724a;hp=b7869e689d40096ba769d5fb6999c727fc31b01d;hpb=85849faad58be4569543658de00d92f25952792b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiMainTest.php b/tests/phpunit/includes/api/ApiMainTest.php index b7869e689d..20d758e3aa 100644 --- a/tests/phpunit/includes/api/ApiMainTest.php +++ b/tests/phpunit/includes/api/ApiMainTest.php @@ -967,8 +967,7 @@ class ApiMainTest extends ApiTestCase { $context->setLanguage( 'en' ); $context->setConfig( new MultiConfig( [ new HashConfig( [ - 'ShowHostnames' => true, 'ShowSQLErrors' => false, - 'ShowExceptionDetails' => true, 'ShowDBErrorBacktrace' => true, + 'ShowHostnames' => true, 'ShowExceptionDetails' => true, ] ), $context->getConfig() ] ) ); @@ -1052,7 +1051,8 @@ class ApiMainTest extends ApiTestCase { [ 'code' => 'existing-error', 'text' => 'existing error', 'module' => 'main' ], [ 'code' => 'internal_api_error_DBQueryError', - 'text' => "[$reqId] Database query error.", + 'text' => "[$reqId] Exception caught: A database query error has occurred. " . + "This may indicate a bug in the software.", ] ], 'trace' => $dbtrace,