Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988426
ContentModelLogFormatterTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ContentModelLogFormatterTest.php
View Options
<?php
/**
* @covers \MediaWiki\Logging\ContentModelLogFormatter
*/
class
ContentModelLogFormatterTest
extends
LogFormatterTestCase
{
public
static
function
provideContentModelLogDatabaseRows
()
{
return
[
[
[
'type'
=>
'contentmodel'
,
'action'
=>
'new'
,
'comment'
=>
'new content model comment'
,
'namespace'
=>
NS_MAIN
,
'title'
=>
'ContentModelPage'
,
'params'
=>
[
'5::newModel'
=>
'testcontentmodel'
,
],
],
[
'text'
=>
'User created the page ContentModelPage '
.
'using a non-default content model '
.
'"testcontentmodel"'
,
'api'
=>
[
'newModel'
=>
'testcontentmodel'
,
],
],
],
[
[
'type'
=>
'contentmodel'
,
'action'
=>
'change'
,
'comment'
=>
'change content model comment'
,
'namespace'
=>
NS_MAIN
,
'title'
=>
'ContentModelPage'
,
'params'
=>
[
'4::oldmodel'
=>
'wikitext'
,
'5::newModel'
=>
'testcontentmodel'
,
],
],
[
'text'
=>
'User changed the content model of the page '
.
'ContentModelPage from "wikitext" to '
.
'"testcontentmodel"'
,
'api'
=>
[
'oldmodel'
=>
'wikitext'
,
'newModel'
=>
'testcontentmodel'
,
],
],
],
];
}
/**
* @dataProvider provideContentModelLogDatabaseRows
*/
public
function
testContentModelLogDatabaseRows
(
$row
,
$extra
)
{
$this
->
doTestLogFormatter
(
$row
,
$extra
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:48 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/cd/7143c6561d8c89571c8e7d5afc57
Default Alt Text
ContentModelLogFormatterTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment