jenkins-bot has submitted this change and it was merged. ( 
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, 7 insertions(+), 7 deletions(-)

Approvals:
  Brian Wolff: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/phpunit/CollaborationHubContentTest.php 
b/tests/phpunit/CollaborationHubContentTest.php
index 0529d5c..f65ee66 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 );
@@ -176,7 +176,7 @@
        public function testGetMembersBlock( CollaborationHubContent $content, 
$id ) {
                $testMemberList = new CollaborationListContent( 
'{"columns":[{"items":[{"title":"User:X"}]}]}' );
 
-               $block = "<h3>Meet our members!</h3><p><br />\n" . wfMessage( 
'collaborationkit-list-isempty' ) . "\n</p><div 
class=\"mw-ck-members-buttons\"><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='/wiki/index.php/Main_Page/Members' rel='nofollow' 
class='oo-ui-buttonElement-button'><span 
class='oo-ui-iconElement-icon'></span><span class='oo-ui-labelElement-label'>". 
wfMessage( 'collaborationkit-hub-members-view' ) . "</span><span 
class='oo-ui-indicatorElement-indicator'></span></a></span><span 
aria-disabled='false' class='mw-ck-members-join oo-ui-widget 
oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed 
oo-ui-labelElement oo-ui-flaggedElement-primary 
oo-ui-flaggedElement-progressive oo-ui-buttonWidget'><a role='button' 
tabindex='0' aria-disabled='false' 
href='/wiki/index.php?title=Main_Page/Members&amp;action=edit' rel='nofollow' 
class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon 
oo-ui-image-invert'></span><span class='oo-ui-labelElement-label'>" . 
wfMessage( 'collaborationkit-hub-members-signup' ) . "</span><span 
class='oo-ui-indicatorElement-indicator 
oo-ui-image-invert'></span></a></span></div>";
+               $block = "<h3>Meet our members!</h3><div 
class=\"mw-parser-output\"><p><br />\n" . wfMessage( 
'collaborationkit-list-isempty' ) . "\n</p></div><div 
class=\"mw-ck-members-buttons\"><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='/wiki/index.php/Main_Page/Members' rel='nofollow' 
class='oo-ui-buttonElement-button'><span 
class='oo-ui-iconElement-icon'></span><span class='oo-ui-labelElement-label'>". 
wfMessage( 'collaborationkit-hub-members-view' ) . "</span><span 
class='oo-ui-indicatorElement-indicator'></span></a></span><span 
aria-disabled='false' class='mw-ck-members-join oo-ui-widget 
oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed 
oo-ui-labelElement oo-ui-flaggedElement-primary 
oo-ui-flaggedElement-progressive oo-ui-buttonWidget'><a role='button' 
tabindex='0' aria-disabled='false' 
href='/wiki/index.php?title=Main_Page/Members&amp;action=edit' rel='nofollow' 
class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon 
oo-ui-image-invert'></span><span class='oo-ui-labelElement-label'>" . 
wfMessage( 'collaborationkit-hub-members-signup' ) . "</span><span 
class='oo-ui-indicatorElement-indicator 
oo-ui-image-invert'></span></a></span></div>";
                $expected = [ $block, $block, $block ];
                $wc = TestingAccessWrapper::newFromObject( $content );
                $actual = $wc->getMembersBlock( Title::newMainPage(), new 
ParserOptions, new ParserOutput, $testMemberList );

-- 
To view, visit https://gerrit.wikimedia.org/r/353007
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7f85f5b219443d4f0c1725cf2a80738d7bd131d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CollaborationKit
Gerrit-Branch: master
Gerrit-Owner: Harej <[email protected]>
Gerrit-Reviewer: Brian Wolff <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to