jenkins-bot has submitted this change and it was merged.
Change subject: Fix Parse error in APITest.php
......................................................................
Fix Parse error in APITest.php
Bug: T70707
Change-Id: Ic99a9056b8f046e4108cb5a086e2ae3f30801dfa
---
M src/test/api/APITest.php
1 file changed, 9 insertions(+), 4 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
Nemo bis: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/src/test/api/APITest.php b/src/test/api/APITest.php
index 0bfe14c..fc8d9f5 100644
--- a/src/test/api/APITest.php
+++ b/src/test/api/APITest.php
@@ -18,10 +18,15 @@
}
public function testGetConversionList(){
- $this->assertArrayEquals(array(
- 'Convert2Wiki\Formats\CSV' => (new
CSV())->getFormatName(),
- 'Convert2Wiki\Formats\WikiTable' => (new
WikiTable())->getFormatName(),
- ),json_decode(API::getConversionList(),true));
+ $tmpCSV = new CSV();
+ $tmpWikiTable = new WikiTable();
+ $this->assertArrayEquals(
+ array(
+ 'Convert2Wiki\Formats\CSV' => $tmpCSV->getFormatName(),
+ 'Convert2Wiki\Formats\WikiTable' =>
$tmpWikiTable->getFormatName()
+ ),
+ json_decode(API::getConversionList(),true)
+ );
}
public function testConvert(){
--
To view, visit https://gerrit.wikimedia.org/r/263335
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic99a9056b8f046e4108cb5a086e2ae3f30801dfa
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Convert2Wiki
Gerrit-Branch: master
Gerrit-Owner: PranavK <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Nemo bis <[email protected]>
Gerrit-Reviewer: PranavK <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits