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
objectcache: only give current format keys getWithSetCallback() callbacks
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
EditPageTest.php
diff --git
a/tests/phpunit/includes/EditPageTest.php
b/tests/phpunit/includes/EditPageTest.php
index
5a01dc0
..
65c5d65
100644
(file)
--- a/
tests/phpunit/includes/EditPageTest.php
+++ b/
tests/phpunit/includes/EditPageTest.php
@@
-29,10
+29,18
@@
class EditPageTest extends MediaWikiLangTestCase {
$wgNamespaceContentModels[12312] = "testing";
$wgContentHandlers["testing"] = 'DummyContentHandlerForTesting';
$wgNamespaceContentModels[12312] = "testing";
$wgContentHandlers["testing"] = 'DummyContentHandlerForTesting';
- MWNamespace::
getCanonicalNamespaces( true ); # reset namespace cache
+ MWNamespace::
clearCaches();
$wgContLang->resetNamespaces(); # reset namespace cache
}
$wgContLang->resetNamespaces(); # reset namespace cache
}
+ protected function tearDown() {
+ global $wgContLang;
+
+ MWNamespace::clearCaches();
+ $wgContLang->resetNamespaces(); # reset namespace cache
+ parent::tearDown();
+ }
+
/**
* @dataProvider provideExtractSectionTitle
* @covers EditPage::extractSectionTitle
/**
* @dataProvider provideExtractSectionTitle
* @covers EditPage::extractSectionTitle
@@
-53,7
+61,7
@@
class EditPageTest extends MediaWikiLangTestCase {
false
],
[
false
],
[
- "An initial section with a fake heder (
bug 32
617)\n\n== Test == ??\nwtf",
+ "An initial section with a fake heder (
T34
617)\n\n== Test == ??\nwtf",
false
],
[
false
],
[
@@
-61,7
+69,7
@@
class EditPageTest extends MediaWikiLangTestCase {
"Section"
],
[
"Section"
],
[
- "== Section== \t\r\n followed by whitespace (
bug 35
051)",
+ "== Section== \t\r\n followed by whitespace (
T37
051)",
'Section',
],
];
'Section',
],
];
@@
-165,6
+173,10
@@
class EditPageTest extends MediaWikiLangTestCase {
$edit['wpStarttime'] = wfTimestampNow();
}
$edit['wpStarttime'] = wfTimestampNow();
}
+ if ( !isset( $edit['wpUnicodeCheck'] ) ) {
+ $edit['wpUnicodeCheck'] = EditPage::UNICODE_CHECK;
+ }
+
$req = new FauxRequest( $edit, true ); // session ??
$article = new Article( $title );
$req = new FauxRequest( $edit, true ); // session ??
$article = new Article( $title );
@@
-697,7
+709,8
@@
hello
'wpTextbox1' => serialize( 'non-text content' ),
'wpEditToken' => $user->getEditToken(),
'wpEdittime' => '',
'wpTextbox1' => serialize( 'non-text content' ),
'wpEditToken' => $user->getEditToken(),
'wpEdittime' => '',
- 'wpStarttime' => wfTimestampNow()
+ 'wpStarttime' => wfTimestampNow(),
+ 'wpUnicodeCheck' => EditPage::UNICODE_CHECK,
];
$req = new FauxRequest( $edit, true );
];
$req = new FauxRequest( $edit, true );