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 "Add a preference to require email for password resets"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
MagicWordFactoryTest.php
diff --git
a/tests/phpunit/includes/MagicWordFactoryTest.php
b/tests/phpunit/includes/MagicWordFactoryTest.php
index
63ca139
..
065024b
100644
(file)
--- a/
tests/phpunit/includes/MagicWordFactoryTest.php
+++ b/
tests/phpunit/includes/MagicWordFactoryTest.php
@@
-7,10
+7,7
@@
*/
class MagicWordFactoryTest extends MediaWikiTestCase {
private function makeMagicWordFactory( Language $contLang = null ) {
*/
class MagicWordFactoryTest extends MediaWikiTestCase {
private function makeMagicWordFactory( Language $contLang = null ) {
- if ( $contLang === null ) {
- return new MagicWordFactory( Language::factory( 'en' ) );
- }
- return new MagicWordFactory( $contLang );
+ return new MagicWordFactory( $contLang ?: Language::factory( 'en' ) );
}
public function testGetContentLanguage() {
}
public function testGetContentLanguage() {