Merge "Relax SpecialPageFatalTest about deprecation notices"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 23 Apr 2019 16:40:53 +0000 (16:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 23 Apr 2019 16:40:53 +0000 (16:40 +0000)
tests/phpunit/structure/SpecialPageFatalTest.php

index 97797ca..026b903 100644 (file)
@@ -32,6 +32,9 @@ class SpecialPageFatalTest extends MediaWikiTestCase {
 
                try {
                        $executor->executeSpecialPage( $page, '', null, null, $user );
+               } catch ( \PHPUnit\Framework\Error\Deprecated $deprecated ) {
+                       // Allow deprecation,
+                       // this test want to check fatals or other things breaking the extension
                } catch ( \PHPUnit\Framework\Error\Error $error ) {
                        // Let phpunit settings working:
                        // - convertErrorsToExceptions="true"