aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2019-07-11 18:09:23 +0100
committerTimo Tijhof <krinklemail@gmail.com>2019-07-16 00:33:19 +0100
commit9bee7ab8a18af30c794fc8048639b8a8cdc9e915 (patch)
tree12399e0bdccb651873b9e94ea816d9af4810e364 /tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
parent1fc5525ebde9ef14a8c0edb49fd729ba27ca78e2 (diff)
downloadmediawikicore-9bee7ab8a18af30c794fc8048639b8a8cdc9e915.tar.gz
mediawikicore-9bee7ab8a18af30c794fc8048639b8a8cdc9e915.zip
resourceloader: Remove support for 'object' in wgResourceModules
Obsolete since MediaWiki 1.17alpha, no known usage since. Bug: T222637 Change-Id: Ie820b16022ced6767c32aee7f2497a99260b1641
Diffstat (limited to 'tests/phpunit/includes/resourceloader/ResourceLoaderTest.php')
-rw-r--r--tests/phpunit/includes/resourceloader/ResourceLoaderTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
index f47bdaf7bf7e..44a1ac07735e 100644
--- a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
+++ b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
@@ -113,7 +113,7 @@ class ResourceLoaderTest extends ResourceLoaderTestCase {
*/
public function testRegisterInvalidType() {
$resourceLoader = new EmptyResourceLoader();
- $this->setExpectedException( MWException::class, 'ResourceLoader module info type error' );
+ $this->setExpectedException( InvalidArgumentException::class, 'Invalid module info' );
$resourceLoader->register( 'test', new stdClass() );
}