mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-12-12 00:26:36 +00:00
22 lines
610 B
PHP
22 lines
610 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @group TemplateStyles
|
||
|
*/
|
||
|
class TemplateStylesContentHandlerTest extends MediaWikiLangTestCase {
|
||
|
|
||
|
public function testBasics() {
|
||
|
$handler = new TemplateStylesContentHandler();
|
||
|
|
||
|
$this->assertSame( 'sanitized-css', $handler->getModelID() );
|
||
|
$this->assertSame( [ 'text/css' ], $handler->getSupportedFormats() );
|
||
|
$this->assertInstanceOf( TemplateStylesContent::class, $handler->makeEmptyContent() );
|
||
|
|
||
|
$this->assertFalse( $handler->supportsRedirects() );
|
||
|
|
||
|
$title = Title::newFromText( 'Template:Example/styles.css' );
|
||
|
$this->assertNull( $handler->makeRedirectContent( $title ) );
|
||
|
}
|
||
|
|
||
|
}
|