Harej has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/353007 )
Change subject: Updating unit tests
......................................................................
Updating unit tests
Change-Id: Ie7f85f5b219443d4f0c1725cf2a80738d7bd131d
---
M tests/phpunit/CollaborationHubContentTest.php
1 file changed, 9 insertions(+), 9 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollaborationKit
refs/changes/07/353007/1
diff --git a/tests/phpunit/CollaborationHubContentTest.php
b/tests/phpunit/CollaborationHubContentTest.php
index 0529d5c..3da547e 100644
--- a/tests/phpunit/CollaborationHubContentTest.php
+++ b/tests/phpunit/CollaborationHubContentTest.php
@@ -118,9 +118,9 @@
*/
public function testGetParsedIntroduction( CollaborationHubContent
$content, $id ) {
$expected = [
- "<p><i>Test</i> content\n</p>",
- '',
- '',
+ "<div class=\"mw-parser-output\"><p><i>Test</i>
content\n</p></div>",
+ '<div class="mw-parser-output"></div>',
+ '<div class="mw-parser-output"></div>',
];
$wc = TestingAccessWrapper::newFromObject( $content );
$actual = $wc->getParsedIntroduction( Title::newMainPage(), new
ParserOptions );
@@ -132,9 +132,9 @@
*/
public function testGetParsedFooter( CollaborationHubContent $content,
$id ) {
$expected = [
- "<p><b>Test</b> content footer\n</p>",
- '',
- '',
+ "<div class=\"mw-parser-output\"><p><b>Test</b> content
footer\n</p></div>",
+ '<div class="mw-parser-output"></div>',
+ '<div class="mw-parser-output"></div>',
];
$wc = TestingAccessWrapper::newFromObject( $content );
$actual = $wc->getParsedFooter( Title::newMainPage(), new
ParserOptions );
@@ -147,9 +147,9 @@
public function testGetParsedContent( CollaborationHubContent $content,
$id ) {
global $wgServer;
$expected = [
- "<div class=\"mw-ck-hub-section\"
id=\"Wow.21\"><h2><span class=\"mw-headline\">Wow!</span></h2><p
class=\"mw-ck-hub-missingfeature-note\">" . wfMessage(
'collaborationkit-hub-missingpage-note' ) . "</p><span aria-disabled='false'
class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement
oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-progressive
oo-ui-buttonWidget'><a role='button' tabindex='0' aria-disabled='false' href='"
. $wgServer .
"/wiki/index.php?title=Special:CreateHubFeature&collaborationhub=Main+Page&feature=Wow'
rel='nofollow' class='oo-ui-buttonElement-button'><span
class='oo-ui-iconElement-icon oo-ui-image-progressive'></span><span
class='oo-ui-labelElement-label'>" . wfMessage(
'collaborationkit-hub-missingpage-create' ) . "</span><span
class='oo-ui-indicatorElement-indicator
oo-ui-image-progressive'></span></a></span><span aria-disabled='false'
class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement
oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonWidget'><a
role='button' tabindex='0' aria-disabled='false' href='" . $wgServer .
"/wiki/index.php?title=Main_Page&action=purge' rel='nofollow'
class='oo-ui-buttonElement-button'><span
class='oo-ui-iconElement-icon'></span><span class='oo-ui-labelElement-label'>"
. wfMessage( 'collaborationkit-hub-missingpage-purgecache' ) . "</span><span
class='oo-ui-indicatorElement-indicator'></span></a></span></div>",
- '',
- ''
+ "<div class=\"mw-parser-output\"><div
class=\"mw-ck-hub-section\" id=\"Wow.21\"><h2><span
class=\"mw-headline\">Wow!</span></h2><p
class=\"mw-ck-hub-missingfeature-note\">" . wfMessage(
'collaborationkit-hub-missingpage-note' ) . "</p><span aria-disabled='false'
class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement
oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-progressive
oo-ui-buttonWidget'><a role='button' tabindex='0' aria-disabled='false' href='"
. $wgServer .
"/wiki/index.php?title=Special:CreateHubFeature&collaborationhub=Main+Page&feature=Wow'
rel='nofollow' class='oo-ui-buttonElement-button'><span
class='oo-ui-iconElement-icon oo-ui-image-progressive'></span><span
class='oo-ui-labelElement-label'>" . wfMessage(
'collaborationkit-hub-missingpage-create' ) . "</span><span
class='oo-ui-indicatorElement-indicator
oo-ui-image-progressive'></span></a></span><span aria-disabled='false'
class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement
oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonWidget'><a
role='button' tabindex='0' aria-disabled='false' href='" . $wgServer .
"/wiki/index.php?title=Main_Page&action=purge' rel='nofollow'
class='oo-ui-buttonElement-button'><span
class='oo-ui-iconElement-icon'></span><span class='oo-ui-labelElement-label'>"
. wfMessage( 'collaborationkit-hub-missingpage-purgecache' ) . "</span><span
class='oo-ui-indicatorElement-indicator'></span></a></span></div></div>",
+ '<div class="mw-parser-output"></div>',
+ '<div class="mw-parser-output"></div>'
];
$wc = TestingAccessWrapper::newFromObject( $content );
$actual = $wc->getParsedContent( Title::newMainPage(), new
ParserOptions, new ParserOutput );
--
To view, visit https://gerrit.wikimedia.org/r/353007
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie7f85f5b219443d4f0c1725cf2a80738d7bd131d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CollaborationKit
Gerrit-Branch: master
Gerrit-Owner: Harej <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits