It is not perfect, but it's a major improvement compared the existing one. We need to clean up a lot more once it has landed but it's a good start. Bug: T337435 Change-Id: I1f85110e754546c797d3325b8dd6878093790266
18 lines
452 B
PHP
18 lines
452 B
PHP
<?php
|
|
|
|
class WebInstallerOutputTest extends MediaWikiIntegrationTestCase {
|
|
/**
|
|
* @covers WebInstallerOutput::getCSS
|
|
*/
|
|
public function testGetCSS() {
|
|
$_SERVER['DOCUMENT_ROOT'] = __DIR__ . '../../../';
|
|
$installer = $this->createMock( WebInstaller::class );
|
|
$out = new WebInstallerOutput( $installer );
|
|
$css = $out->getCSS();
|
|
$this->assertStringContainsString(
|
|
'#mw-panel {',
|
|
$css,
|
|
'CSS for installer can be generated'
|
|
);
|
|
}
|
|
}
|