Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7424070
DeAbstractedCheckUserPagerTest.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
DeAbstractedCheckUserPagerTest.php
View Options
<?php
namespace
MediaWiki\CheckUser\Tests\Integration\CheckUser\Pagers
;
use
MediaWiki\CheckUser\CheckUser\Pagers\AbstractCheckUserPager
;
/**
* A helper class for AbstractCheckUserPagerTest.php.
* Because AbstractCheckUserPager is an abstract class
* it has to be extended first if an object is wanted.
*
* This implements the abstracted methods by returning
* an empty response or a predefined response (as testing
* these methods should be done for classes that extend
* AbstractCheckUserPager).
*
* @coversNothing
*/
class
DeAbstractedCheckUserPagerTest
extends
AbstractCheckUserPager
{
public
array
$mockGetQueryInfoResponse
=
[
'tables'
=>
[],
'fields'
=>
[],
'conds'
=>
[],
'options'
=>
[],
'join_conds'
=>
[],
];
public
function
formatRow
(
$row
)
{
return
''
;
}
public
function
getQueryInfo
(
?
string
$table
=
null
):
array
{
return
$this
->
mockGetQueryInfoResponse
;
}
protected
function
getQueryInfoForCuChanges
():
array
{
return
$this
->
mockGetQueryInfoResponse
;
}
protected
function
getQueryInfoForCuLogEvent
():
array
{
return
$this
->
mockGetQueryInfoResponse
;
}
protected
function
getQueryInfoForCuPrivateEvent
():
array
{
return
$this
->
mockGetQueryInfoResponse
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 07:03 (21 h, 37 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b1/08/7e19d45b2834c49109d18b06dafd
Default Alt Text
DeAbstractedCheckUserPagerTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment