$wgNamespaceContentModels[12312] = "testing";
$wgContentHandlers["testing"] = 'DummyContentHandlerForTesting';
- MWNamespace::getCanonicalNamespaces( true ); # reset namespace cache
+ MWNamespace::clearCaches();
$wgContLang->resetNamespaces(); # reset namespace cache
}
+ protected function tearDown() {
+ global $wgContLang;
+
+ MWNamespace::clearCaches();
+ $wgContLang->resetNamespaces(); # reset namespace cache
+ parent::tearDown();
+ }
+
/**
* @dataProvider provideExtractSectionTitle
* @covers EditPage::extractSectionTitle
false
],
[
- "An initial section with a fake heder (bug 32617)\n\n== Test == ??\nwtf",
+ "An initial section with a fake heder (T34617)\n\n== Test == ??\nwtf",
false
],
[
"Section"
],
[
- "== Section== \t\r\n followed by whitespace (bug 35051)",
+ "== Section== \t\r\n followed by whitespace (T37051)",
'Section',
],
];
$edit['wpStarttime'] = wfTimestampNow();
}
+ if ( !isset( $edit['wpUnicodeCheck'] ) ) {
+ $edit['wpUnicodeCheck'] = EditPage::UNICODE_CHECK;
+ }
+
$req = new FauxRequest( $edit, true ); // session ??
$article = new Article( $title );
'wpTextbox1' => serialize( 'non-text content' ),
'wpEditToken' => $user->getEditToken(),
'wpEdittime' => '',
- 'wpStarttime' => wfTimestampNow()
+ 'wpStarttime' => wfTimestampNow(),
+ 'wpUnicodeCheck' => EditPage::UNICODE_CHECK,
];
$req = new FauxRequest( $edit, true );