2019-05-01 11:39:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
2020-04-28 22:54:18 +00:00
|
|
|
use MediaWiki\Page\PageCommandFactory;
|
2019-05-01 11:39:45 +00:00
|
|
|
|
|
|
|
|
/**
|
2020-04-28 22:54:18 +00:00
|
|
|
* @covers MediaWiki\Page\PageCommandFactory
|
2019-05-01 11:39:45 +00:00
|
|
|
*/
|
2020-04-28 22:54:18 +00:00
|
|
|
class MovePageFactoryTest extends MediaWikiUnitTestCase {
|
2019-05-01 11:39:45 +00:00
|
|
|
use FactoryArgTestTrait;
|
|
|
|
|
|
2020-03-30 21:36:43 +00:00
|
|
|
protected static function getFactoryClass() {
|
2020-04-28 22:54:18 +00:00
|
|
|
return PageCommandFactory::class;
|
2019-05-01 11:39:45 +00:00
|
|
|
}
|
|
|
|
|
|
2020-03-30 21:36:43 +00:00
|
|
|
protected static function getInstanceClass() {
|
2019-05-01 11:39:45 +00:00
|
|
|
return MovePage::class;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected static function getExtraClassArgCount() {
|
|
|
|
|
// $to and $from
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
}
|