dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Revert "selenium: add new message banner test to user spec""
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
site
/
SiteExporterTest.php
diff --git
a/tests/phpunit/includes/site/SiteExporterTest.php
b/tests/phpunit/includes/site/SiteExporterTest.php
index
cb4b697
..
3a41b5f
100644
(file)
--- a/
tests/phpunit/includes/site/SiteExporterTest.php
+++ b/
tests/phpunit/includes/site/SiteExporterTest.php
@@
-31,8
+31,10
@@
*/
class SiteExporterTest extends PHPUnit_Framework_TestCase {
*/
class SiteExporterTest extends PHPUnit_Framework_TestCase {
+ use MediaWikiCoversValidator;
+
public function testConstructor_InvalidArgument() {
public function testConstructor_InvalidArgument() {
- $this->setExpectedException(
'InvalidArgumentException'
);
+ $this->setExpectedException(
InvalidArgumentException::class
);
new SiteExporter( 'Foo' );
}
new SiteExporter( 'Foo' );
}
@@
-75,7
+77,7
@@
class SiteExporterTest extends PHPUnit_Framework_TestCase {
}
private function newSiteStore( SiteList $sites ) {
}
private function newSiteStore( SiteList $sites ) {
- $store = $this->getMock
( 'SiteStore'
);
+ $store = $this->getMock
Builder( SiteStore::class )->getMock(
);
$store->expects( $this->once() )
->method( 'saveSites' )
$store->expects( $this->once() )
->method( 'saveSites' )