jenkins-bot has submitted this change and it was merged. Change subject: UEModulePDF: Adding UnitTests ......................................................................
UEModulePDF: Adding UnitTests Change-Id: Ic289bc97fe9cdd6121085200b7564061c2dbead1 --- M UEModulePDF/UEModulePDF.class.php M UEModulePDF/extension.json 2 files changed, 14 insertions(+), 2 deletions(-) Approvals: Mglaser: Looks good to me, approved jenkins-bot: Verified diff --git a/UEModulePDF/UEModulePDF.class.php b/UEModulePDF/UEModulePDF.class.php index f2cff00..cfaa805 100644 --- a/UEModulePDF/UEModulePDF.class.php +++ b/UEModulePDF/UEModulePDF.class.php @@ -234,4 +234,14 @@ ); } + /** + * Register PHP Unit Tests with MediaWiki frameweork + * @param array $paths + * @return boolean + */ + public static function onUnitTestsList( &$paths ) { + $paths[] = __DIR__ . '/tests/phpunit/'; + return true; + } + } diff --git a/UEModulePDF/extension.json b/UEModulePDF/extension.json index b0f5854..666a1fc 100644 --- a/UEModulePDF/extension.json +++ b/UEModulePDF/extension.json @@ -21,10 +21,12 @@ "BsPDFTemplateProvider": "includes/PDFTemplateProvider.class.php", "BsPDFWebService": "includes/PDFWebService.class.php", "BsPDFServlet": "includes/PDFServlet.class.php", - "BsExportModulePDF": "includes/ExportModulePDF.class.php" + "BsExportModulePDF": "includes/ExportModulePDF.class.php", + "BSFilePathResolver": "includes/BSFilePathResolver.php" }, "Hooks": { - "LoadExtensionSchemaUpdates": "UEModulePDF::getSchemaUpdates" + "LoadExtensionSchemaUpdates": "UEModulePDF::getSchemaUpdates", + "UnitTestsList": "UEModulePDF::onUnitTestsList" }, "manifest_version": 1 } -- To view, visit https://gerrit.wikimedia.org/r/309290 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic289bc97fe9cdd6121085200b7564061c2dbead1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Robert Vogel <vo...@hallowelt.biz> Gerrit-Reviewer: Dvogel hallowelt <daniel.vo...@hallowelt.com> Gerrit-Reviewer: Ljonka <l.verhovs...@gmail.com> Gerrit-Reviewer: Mglaser <gla...@hallowelt.biz> Gerrit-Reviewer: Pwirth <wi...@hallowelt.biz> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits