Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4114727
WikiImporterFactoryTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
941 B
Referenced Files
None
Subscribers
None
WikiImporterFactoryTest.php
View Options
<?php
namespace
MediaWiki\Tests\Import
;
use
FactoryArgTestTrait
;
use
ImportSource
;
use
MediaWikiUnitTestCase
;
use
ReflectionParameter
;
use
WikiImporter
;
use
WikiImporterFactory
;
/**
* @covers \WikiImporterFactory
*/
class
WikiImporterFactoryTest
extends
MediaWikiUnitTestCase
{
use
FactoryArgTestTrait
;
protected
static
function
getFactoryClass
()
{
return
WikiImporterFactory
::
class
;
}
protected
static
function
getInstanceClass
()
{
return
WikiImporter
::
class
;
}
protected
static
function
getExtraClassArgCount
()
{
return
2
;
}
protected
function
getFactoryMethodName
()
{
return
'getWikiImporter'
;
}
protected
function
getOverriddenMockValueForParam
(
ReflectionParameter
$param
)
{
if
(
$param
->
getType
()->
getName
()
!==
ImportSource
::
class
)
{
return
[];
}
$importSource
=
$this
->
createMock
(
ImportSource
::
class
);
$importSource
->
method
(
'atEnd'
)->
willReturn
(
true
);
return
[
$importSource
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 00:23 (2 w, 17 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9f/0e/a59d7538daa0674185882372cdcb
Default Alt Text
WikiImporterFactoryTest.php (941 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment