X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiContinuationManagerTest.php;h=bb4ea75893739f2bf3d6a08642bc18794357f84a;hb=9e07891ca7cd2f83004206c637e50da2a0419a31;hp=3ad16d132224c025c9f54ef066a72cab5d5c9d59;hpb=63ab00b60ddc167b6359c7d51ed9e9c4f65b7258;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiContinuationManagerTest.php b/tests/phpunit/includes/api/ApiContinuationManagerTest.php index 3ad16d1322..bb4ea75893 100644 --- a/tests/phpunit/includes/api/ApiContinuationManagerTest.php +++ b/tests/phpunit/includes/api/ApiContinuationManagerTest.php @@ -160,10 +160,8 @@ class ApiContinuationManagerTest extends MediaWikiTestCase { try { self::getManager( 'foo', $allModules, [ 'mock1', 'mock2' ] ); $this->fail( 'Expected exception not thrown' ); - } catch ( UsageException $ex ) { - $this->assertSame( - 'Invalid continue param. You should pass the original value returned by the previous query', - $ex->getMessage(), + } catch ( ApiUsageException $ex ) { + $this->assertTrue( ApiTestCase::apiExceptionHasCode( $ex, 'badcontinue' ), 'Expected exception' ); }