2021-04-14 21:52:37 +00:00
|
|
|
<?php
|
|
|
|
|
|
2024-01-05 18:27:39 +00:00
|
|
|
use MediaWiki\Installer\WebInstaller;
|
|
|
|
|
use MediaWiki\Installer\WebInstallerOutput;
|
|
|
|
|
|
2021-04-14 21:52:37 +00:00
|
|
|
class WebInstallerOutputTest extends MediaWikiIntegrationTestCase {
|
|
|
|
|
/**
|
2024-01-05 18:27:39 +00:00
|
|
|
* @covers \MediaWiki\Installer\WebInstallerOutput::getCSS
|
2021-04-14 21:52:37 +00:00
|
|
|
*/
|
|
|
|
|
public function testGetCSS() {
|
|
|
|
|
$_SERVER['DOCUMENT_ROOT'] = __DIR__ . '../../../';
|
2022-07-14 12:42:07 +00:00
|
|
|
$installer = $this->createMock( WebInstaller::class );
|
2021-04-14 21:52:37 +00:00
|
|
|
$out = new WebInstallerOutput( $installer );
|
|
|
|
|
$css = $out->getCSS();
|
|
|
|
|
$this->assertStringContainsString(
|
2023-12-11 19:21:51 +00:00
|
|
|
'#mw-panel {',
|
2021-04-14 21:52:37 +00:00
|
|
|
$css,
|
|
|
|
|
'CSS for installer can be generated'
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|