wiki.techinc.nl/tests/phpunit/includes/installer/WebInstallerOutputTest.php
Amir Sarabadani bccdfd85da Redesign the installer with Codex
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
2023-12-13 14:25:38 +01:00

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'
);
}
}