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
Suppress addCoreDBData() in tests overriding the revision schema.
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
page
/
ArticleTablesTest.php
diff --git
a/tests/phpunit/includes/page/ArticleTablesTest.php
b/tests/phpunit/includes/page/ArticleTablesTest.php
index
d885926
..
34b2525
100644
(file)
--- a/
tests/phpunit/includes/page/ArticleTablesTest.php
+++ b/
tests/phpunit/includes/page/ArticleTablesTest.php
@@
-5,7
+5,7
@@
*/
class ArticleTablesTest extends MediaWikiLangTestCase {
/**
*/
class ArticleTablesTest extends MediaWikiLangTestCase {
/**
- * Make sure that
bug 14
404 doesn't strike again. We don't want
+ * Make sure that
T16
404 doesn't strike again. We don't want
* templatelinks based on the user language when {{int:}} is used, only the
* content language.
*
* templatelinks based on the user language when {{int:}} is used, only the
* content language.
*
@@
-13,30
+13,29
@@
class ArticleTablesTest extends MediaWikiLangTestCase {
* @covers Title::getLinksFrom
*/
public function testTemplatelinksUsesContentLanguage() {
* @covers Title::getLinksFrom
*/
public function testTemplatelinksUsesContentLanguage() {
- $title = Title::newFromText( '
Bug 14
404' );
+ $title = Title::newFromText( '
T16
404' );
$page = WikiPage::factory( $title );
$user = new User();
$user->mRights = [ 'createpage', 'edit', 'purge' ];
$page = WikiPage::factory( $title );
$user = new User();
$user->mRights = [ 'createpage', 'edit', 'purge' ];
- $this->setMwGlobals( 'wgLanguageCode', 'es' );
- $this->setMwGlobals( 'wgContLang', Language::factory( 'es' ) );
- $this->setMwGlobals( 'wgLang', Language::factory( 'fr' ) );
+ $this->setContentLang( 'es' );
+ $this->setUserLang( 'fr' );
$page->doEditContent(
new WikitextContent( '{{:{{int:history}}}}' ),
$page->doEditContent(
new WikitextContent( '{{:{{int:history}}}}' ),
- 'Test code for
bug 14
404',
+ 'Test code for
T16
404',
0,
false,
$user
);
$templates1 = $title->getTemplateLinksFrom();
0,
false,
$user
);
$templates1 = $title->getTemplateLinksFrom();
- $this->set
MwGlobals( 'wgLang', Language::factory( 'de' )
);
+ $this->set
UserLang( 'de'
);
$page = WikiPage::factory( $title ); // In order to force the re-rendering of the same wikitext
// We need an edit, a purge is not enough to regenerate the tables
$page->doEditContent(
new WikitextContent( '{{:{{int:history}}}}' ),
$page = WikiPage::factory( $title ); // In order to force the re-rendering of the same wikitext
// We need an edit, a purge is not enough to regenerate the tables
$page->doEditContent(
new WikitextContent( '{{:{{int:history}}}}' ),
- 'Test code for
bug 14
404',
+ 'Test code for
T16
404',
EDIT_UPDATE,
false,
$user
EDIT_UPDATE,
false,
$user