Nik has submitted this change and it was merged.
Change subject: Fixed PHPUnit tests.
......................................................................
Fixed PHPUnit tests.
Change-Id: I92fc26559c8c948f825902a8905e08413c363984
---
M PubSubHubbub.php
M tests/phpunit/PubSubHubbubTest.php
2 files changed, 2 insertions(+), 1 deletion(-)
Approvals:
Nik: Verified; Looks good to me, approved
diff --git a/PubSubHubbub.php b/PubSubHubbub.php
index 2c8f5cd..b313225 100644
--- a/PubSubHubbub.php
+++ b/PubSubHubbub.php
@@ -53,4 +53,5 @@
$wgHooks['PageContentSaveComplete'][] =
'PubSubHubbub\\PubSubHubbub::onPageContentSaveComplete';
$wgHooks['RawPageViewBeforeOutput'][] =
'PubSubHubbub\\PubSubHubbub::onRawPageViewBeforeOutput';
$wgHooks['ArticlePageDataAfter'][] =
'PubSubHubbub\\PubSubHubbub::onArticlePageDataAfter';
+$wgHooks['UnitTestsList'][] = 'PubSubHubbub\\PubSubHubbub::onUnitTestsList';
$wgJobClasses['PublishChanges'] = 'PubSubHubbub\\PublishChangesJob';
diff --git a/tests/phpunit/PubSubHubbubTest.php
b/tests/phpunit/PubSubHubbubTest.php
index e71d87a..778ebc1 100644
--- a/tests/phpunit/PubSubHubbubTest.php
+++ b/tests/phpunit/PubSubHubbubTest.php
@@ -44,7 +44,7 @@
PubSubHubbub::onPageContentSaveComplete( $article, $user,
$content, $summary, $isMinor,
$section, $flags, $revision, $status, $baseRevId );
- $row = [ [$count] ];
+ $row = array( array( $count ) );
$this->assertSelect( "job", "count(*)", "", $row );
}
--
To view, visit https://gerrit.wikimedia.org/r/123579
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I92fc26559c8c948f825902a8905e08413c363984
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PubSubHubbub
Gerrit-Branch: master
Gerrit-Owner: Nik <[email protected]>
Gerrit-Reviewer: Nik <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits