Merge "Drop cache interwiki"
[mediawiki.git] / tests / phpunit / includes / logging / ContentModelLogFormatterTest.php
blobbb30f9ee337e8fcb5521f7f7d778f568688a3cba
1 <?php
3 /**
4 * @covers \ContentModelLogFormatter
5 */
6 class ContentModelLogFormatterTest extends LogFormatterTestCase {
7 public static function provideContentModelLogDatabaseRows() {
8 return [
11 'type' => 'contentmodel',
12 'action' => 'new',
13 'comment' => 'new content model comment',
14 'namespace' => NS_MAIN,
15 'title' => 'ContentModelPage',
16 'params' => [
17 '5::newModel' => 'testcontentmodel',
21 'text' => 'User created the page ContentModelPage ' .
22 'using a non-default content model ' .
23 '"testcontentmodel"',
24 'api' => [
25 'newModel' => 'testcontentmodel',
31 'type' => 'contentmodel',
32 'action' => 'change',
33 'comment' => 'change content model comment',
34 'namespace' => NS_MAIN,
35 'title' => 'ContentModelPage',
36 'params' => [
37 '4::oldmodel' => 'wikitext',
38 '5::newModel' => 'testcontentmodel',
42 'text' => 'User changed the content model of the page ' .
43 'ContentModelPage from "wikitext" to ' .
44 '"testcontentmodel"',
45 'api' => [
46 'oldmodel' => 'wikitext',
47 'newModel' => 'testcontentmodel',
54 /**
55 * @dataProvider provideContentModelLogDatabaseRows
57 public function testContentModelLogDatabaseRows( $row, $extra ) {
58 $this->doTestLogFormatter( $row, $extra );