4 * @group ContentHandler
6 * ^--- needed, because we do need the database to test link updates
7 * @covers \MediaWiki\Content\CssContentHandler
9 class CssContentHandlerIntegrationTest
extends TextContentHandlerIntegrationTest
{
10 public static function provideGetParserOutput() {
11 yield
'Basic render' => [
12 'title' => 'MediaWiki:Test.css',
14 'text' => "hello <world>x\n",
15 'expectedHtml' => "<pre class=\"mw-code mw-css\" dir=\"ltr\">hello <world>x\n\n</pre>",
24 'title' => 'MediaWiki:Test.css',
26 'text' => "/* hello [[world]] */\n",
27 'expectedHtml' => "<pre class=\"mw-code mw-css\" dir=\"ltr\">/* hello [[world]] */\n\n</pre>",
37 'title' => 'MediaWiki:Test.css',
39 'text' => "==One==\n<h2>Two</h2>",
40 'expectedHtml' => "<pre class=\"mw-code mw-css\" dir=\"ltr\">==One==\n<h2>Two</h2>\n</pre>",