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 "Fix test for view language for non-wikitext in main NS."
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
languages
/
LanguageUzTest.php
diff --git
a/tests/phpunit/languages/LanguageUzTest.php
b/tests/phpunit/languages/LanguageUzTest.php
index
7238728
..
99607d1
100644
(file)
--- a/
tests/phpunit/languages/LanguageUzTest.php
+++ b/
tests/phpunit/languages/LanguageUzTest.php
@@
-15,16
+15,7
@@
require_once dirname( __DIR__ ) . '/bootstrap.php';
/** Tests for MediaWiki languages/LanguageUz.php */
require_once dirname( __DIR__ ) . '/bootstrap.php';
/** Tests for MediaWiki languages/LanguageUz.php */
-class LanguageUzTest extends MediaWikiTestCase {
- /* Language object. Initialized before each test */
- private $lang;
-
- function setUp() {
- $this->lang = Language::factory( 'uz' );
- }
- function tearDown() {
- unset( $this->lang );
- }
+class LanguageUzTest extends LanguageClassesTestCase {
/**
* @author Nikola Smolenski
/**
* @author Nikola Smolenski
@@
-109,7
+100,7
@@
class LanguageUzTest extends MediaWikiTestCase {
/** Wrapper for converter::convertTo() method*/
function convertTo( $text, $variant ) {
/** Wrapper for converter::convertTo() method*/
function convertTo( $text, $variant ) {
- return $this->
lang
->mConverter->convertTo( $text, $variant );
+ return $this->
getLang()
->mConverter->convertTo( $text, $variant );
}
function convertToCyrillic( $text ) {
return $this->convertTo( $text, 'uz-cyrl' );
}
function convertToCyrillic( $text ) {
return $this->convertTo( $text, 'uz-cyrl' );