mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
6dc56deebd
Change-Id: Ib41cad1e14243577c0a78becb2bc5cb6a50afa5d
30 lines
717 B
PHP
30 lines
717 B
PHP
<?php
|
|
|
|
namespace Cite\Tests;
|
|
|
|
use Cite\ResourceLoader\CiteCSSFileModule;
|
|
use MediaWiki\ResourceLoader\Context;
|
|
|
|
/**
|
|
* @covers \Cite\ResourceLoader\CiteCSSFileModule
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
class CiteCSSFileModuleTest extends \MediaWikiIntegrationTestCase {
|
|
|
|
protected function setUp(): void {
|
|
parent::setUp();
|
|
|
|
$this->setService(
|
|
'ContentLanguage',
|
|
$this->getServiceContainer()->getLanguageFactory()->getLanguage( 'fa' )
|
|
);
|
|
}
|
|
|
|
public function testModule() {
|
|
$module = new CiteCSSFileModule( [], __DIR__ . '/../../modules/parsoid-styles' );
|
|
$styles = $module->getStyleFiles( $this->createMock( Context::class ) );
|
|
$this->assertSame( [ 'ext.cite.style.fa.less' ], $styles['all'] );
|
|
}
|
|
|
|
}
|