From 05da60c44718d5b30341c799541eafa2869b23d7 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 4 May 2018 01:01:40 +0100 Subject: [PATCH] API: Add ApiParseTest case for 'styles' in getDefaultModules Follows-up a01d8be82c. Bug: T140664 Change-Id: Ic4151a548884d10a2302af49d89e9e36fd6766fd --- tests/phpunit/includes/api/ApiParseTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/api/ApiParseTest.php b/tests/phpunit/includes/api/ApiParseTest.php index a04271f602..8a40266e44 100644 --- a/tests/phpunit/includes/api/ApiParseTest.php +++ b/tests/phpunit/includes/api/ApiParseTest.php @@ -133,6 +133,7 @@ class ApiParseTest extends ApiTestCase { ->getMock(); $skin->expects( $this->once() )->method( 'getDefaultModules' ) ->willReturn( [ + 'styles' => [ 'core' => [ 'quux.styles' ] ], 'core' => [ 'foo', 'bar' ], 'content' => [ 'baz' ] ] ); @@ -686,7 +687,7 @@ class ApiParseTest extends ApiTestCase { 'resp.parse.modulescripts' ); $this->assertSame( - [ 'foo.styles' ], + [ 'foo.styles', 'quux.styles' ], $res[0]['parse']['modulestyles'], 'resp.parse.modulestyles' ); -- 2.20.1