SkinTest.php 468 B

1234567891011121314151617
  1. <?php
  2. class SkinTest extends MediaWikiTestCase {
  3. /**
  4. * @covers Skin::getDefaultModules
  5. */
  6. public function testGetDefaultModules() {
  7. $skin = $this->getMockBuilder( Skin::class )
  8. ->setMethods( [ 'outputPage', 'setupSkinUserCss' ] )
  9. ->getMock();
  10. $modules = $skin->getDefaultModules();
  11. $this->assertTrue( isset( $modules['core'] ), 'core key is set by default' );
  12. $this->assertTrue( isset( $modules['styles'] ), 'style key is set by default' );
  13. }
  14. }