wiki.techinc.nl/tests/phpunit/includes/installer/WebInstallerOutputTest.php

19 lines
451 B
PHP
Raw Normal View History

<?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(
'#content {',
$css,
'CSS for installer can be generated'
);
}
}