diff options
Diffstat (limited to 'tests/phpunit/includes/api/ApiTestCase.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiTestCase.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiTestCase.php b/tests/phpunit/includes/api/ApiTestCase.php index 6137f438142c..c1a562e01832 100644 --- a/tests/phpunit/includes/api/ApiTestCase.php +++ b/tests/phpunit/includes/api/ApiTestCase.php @@ -300,7 +300,7 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { if ( !$other instanceof ApiUsageException ) { return null; } - $errors = $other->getStatusValue()->getErrors(); + $errors = $other->getStatusValue()->getMessages(); if ( count( $errors ) === 0 ) { return '(no error)'; } elseif ( count( $errors ) > 1 ) { |