4 * @covers \ContentModelLogFormatter
6 class ContentModelLogFormatterTest
extends LogFormatterTestCase
{
7 public static function provideContentModelLogDatabaseRows() {
11 'type' => 'contentmodel',
13 'comment' => 'new content model comment',
14 'namespace' => NS_MAIN
,
15 'title' => 'ContentModelPage',
17 '5::newModel' => 'testcontentmodel',
21 'text' => 'User created the page ContentModelPage ' .
22 'using a non-default content model ' .
25 'newModel' => 'testcontentmodel',
31 'type' => 'contentmodel',
33 'comment' => 'change content model comment',
34 'namespace' => NS_MAIN
,
35 'title' => 'ContentModelPage',
37 '4::oldmodel' => 'wikitext',
38 '5::newModel' => 'testcontentmodel',
42 'text' => 'User changed the content model of the page ' .
43 'ContentModelPage from "wikitext" to ' .
46 'oldmodel' => 'wikitext',
47 'newModel' => 'testcontentmodel',
55 * @dataProvider provideContentModelLogDatabaseRows
57 public function testContentModelLogDatabaseRows( $row, $extra ) {
58 $this->doTestLogFormatter( $row, $extra );