From ef19fb3f13d90cfcf3ca9cdbfcf4efcd0c408a7b Mon Sep 17 00:00:00 2001 From: Allen Shaw Date: Mon, 26 Sep 2016 16:34:14 -0500 Subject: [PATCH] Unit test for CRM-19408. --- tests/mock/extension_browser_results/single | 1 + tests/phpunit/api/v3/ExtensionTest.php | 60 +++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 tests/mock/extension_browser_results/single create mode 100644 tests/phpunit/api/v3/ExtensionTest.php diff --git a/tests/mock/extension_browser_results/single b/tests/mock/extension_browser_results/single new file mode 100644 index 0000000000..ef9b00a2d9 --- /dev/null +++ b/tests/mock/extension_browser_results/single @@ -0,0 +1 @@ +{"org.civicrm.module.cividiscount":"\n\n cividiscount<\/file>\n CiviDiscount<\/name>\n Enables discount codes and automatic discounts for events and memberships.<\/description>\n \n \n http:\/\/civicrm.org\/extension\/cividiscount-extension\n <\/url>\n \n https:\/\/github.com\/dlobo\/org.civicrm.module.cividiscount\/\n <\/url>\n http:\/\/civicrm.stackexchange.com<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n CiviCRM LLC<\/author>\n info@civicrm.org<\/email>\n <\/maintainer>\n 2016-03-04<\/releaseDate>\n 3.2<\/version>\n \n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n For support, please contact the team on the forums. (http:\/\/forum.civicrm.org)\n <\/comments>\n \n CRM\/CiviDiscount<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/dlobo\/org.civicrm.module.cividiscount\/archive\/3.2.zip<\/downloadUrl>stable<\/develStage><\/extension>\n","nz.co.fuzion.extendedreport":"\n\n https:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.extendedreport\/archive\/2.4.zip<\/downloadUrl>\n extendedreport<\/file>\n ExtendedReport<\/name>\n Extended reports<\/description>\n AGPL<\/license>\n \n http:\/\/civicrm.org<\/url>\n http:\/\/forum.civicrm.org<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n \n Eileen McNaughton<\/author>\n eileen@fuzion.co.nz<\/email>\n <\/maintainer>\n 2016-07-25<\/releaseDate>\n 2.4<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n Extended reports create other report options such as crosstab urls, multiple contact custom fields, price\n set reports\n <\/comments>\n \n CRM\/Extendedreport<\/namespace>\n <\/civix>\n<\/extension>\n","ca.bidon.reporterror":"\n\n reporterror<\/file>\n CiviCRM Report Error<\/name>\n Advanced error handler for CiviCRM that sends an e-mail with detailed information when fatal errors are encountered.<\/description>\n AGPL 3<\/license>\n \n Mathieu Lutfy<\/author>\n mathieu@bidon.ca<\/email>\n <\/maintainer>\n \n https:\/\/github.com\/mlutfy\/ca.bidon.reporterror<\/url>\n https:\/\/github.com\/mlutfy\/ca.bidon.reporterror\/blob\/master\/README.md<\/url>\n http:\/\/forum.civicrm.org\/index.php\/board,57.0.html<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n 2016-03-06<\/releaseDate>\n 2.9<\/version>\n stable<\/develStage>\n \n 4.2<\/ver>\n 4.3<\/ver>\n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/ReportError<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/mlutfy\/ca.bidon.reporterror\/archive\/2.9.zip<\/downloadUrl><\/extension>\n","org.civicrm.multisite":"\n\n multisite<\/file>\n CiviCRM Multisite<\/name>\n Multisite permissioning for CiviCRM<\/description>\n \n http:\/\/wiki.civicrm.org\/confluence\/pages\/viewpage.action?pageId=86213708<\/url>\n http:\/\/forum.civicrm.org\/index.php\/board,51.0.html<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n AGPL<\/license>\n \n CiviCRM LLC<\/author>\n info@civicrm.org<\/email>\n <\/maintainer>\n 2016-07-25<\/releaseDate>\n 2.5<\/version>\n stable<\/develStage>\n \n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n This is a port of the CiviCRM multisite module to an extension. You will need to review the changes in this version<\/comments>\n \n CRM\/Multisite<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/eileenmcnaughton\/org.civicrm.multisite\/archive\/2.5.zip<\/downloadUrl><\/extension>\n","org.civicrm.sms.twilio":"\n\n https:\/\/github.com\/civicrm\/org.civicrm.sms.twilio\/archive\/1.1.1.zip<\/downloadUrl>\n twilio<\/file>\n twilio<\/name>\n Twilio integration allows delivering short message service (SMS) messages through its Twilio Gateway to mobile phone users.<\/description>\n \n http:\/\/civicrm.org<\/url>\n http:\/\/wiki.civicrm.org\/confluence\/display\/CRMDOC\/Setting+up+a+SMS+Provider+for+CiviSMS<\/url>\n http:\/\/forum.civicrm.org<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n AGPL<\/license>\n \n Community Contributed<\/author>\n info@civicrm.org<\/email>\n <\/maintainer>\n 2016-06-24<\/releaseDate>\n 1.1.1<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n For support, please contact project team on the forums.<\/comments>\n<\/extension>\n","com.webaccessglobal.module.civimobile":"\n\n https:\/\/github.com\/webaccess\/com.webaccessglobal.module.civimobile\/archive\/2.0.zip<\/downloadUrl>\n civimobile<\/file>\n CiviMobile<\/name>\n Mobile interface for CiviCRM<\/description>\n \n http:\/\/civicrm.org\/extensions\/civimobile<\/url>\n https:\/\/github.com\/webaccess\/com.webaccessglobal.module.civimobile<\/url>\n https:\/\/github.com\/webaccess\/com.webaccessglobal.module.civimobile\/issues<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n Web Access<\/author>\n info@webaccessglobal.com<\/email>\n <\/maintainer>\n 2016-04-12<\/releaseDate>\n 2.0<\/version>\n stable<\/develStage>\n \n 4.7<\/ver>\n <\/compatibility>\n For support, please contact the team on github. (https:\/\/github.com\/webaccess\/com.webaccessglobal.module.civimobile\/issues)<\/comments>\n<\/extension>\n","net.ourpowerbase.sumfields":"\n\n sumfields<\/file>\n Summary Fields<\/name>\n The Summary Fields extension creates read-only custom data fields that extend Contact and are automatically populated with up-to-date totals such as total lifetime contributions, last contribution amount, last attended event, etc.<\/description>\n GPL version 3<\/license>\n \n Jamie McClelland\/Progressive Technology Project<\/author>\n jamie@progressivetech.org<\/email>\n <\/maintainer>\n 2016-07-27<\/releaseDate>\n 2.0.6<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n This extension adds custom data fields and triggers to your database. Disabling this extension will cause the custom data fields to be deleted and triggers removed.<\/comments>\n \n CRM\/Sumfields<\/namespace>\n <\/civix>\n \n https:\/\/github.com\/progressivetech\/net.ourpowerbase.sumfields<\/url>\n https:\/\/github.com\/progressivetech\/net.ourpowerbase.sumfields<\/url>\n <\/urls>\nhttps:\/\/github.com\/progressivetech\/net.ourpowerbase.sumfields\/archive\/v2.0.6.zip<\/downloadUrl><\/extension>\n","uk.co.compucorp.civicrm.booking":"\n\n booking<\/file>\n CiviBooking<\/name>\n A CMS independent extension to allow organisations to manage a group of resources (i.e. rooms) offering these to constituents for a fee.<\/description>\n the GNU Affero General Public License 3 (GNU AGPL 3) and the CiviCRM Licensing Exception.<\/license>\n \n Erawat Chamanont, Jamie Novick, Guanhuan Chen<\/author>\n jamie@compucorpc.o.uk, guanhuan@compucorp.co.uk<\/email>\n <\/maintainer>\n \n http:\/\/civicrm.org\/extensions\/civibooking<\/url>\n https:\/\/github.com\/compucorp\/civibooking<\/url>\n support@compucorp.co.uk<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n \n 2016-07-25<\/releaseDate>\n 1.5<\/version>\n stable<\/develStage>\n \n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/Booking<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/compucorp\/civibooking\/archive\/v1.5.zip<\/downloadUrl><\/extension>\n","org.civicrm.volunteer":"\n\n volunteer<\/file>\n CiviVolunteer<\/name>\n The CiviVolunteer extension provides tools for signing up, managing, and tracking volunteers.<\/description>\n AGPL-3.0<\/license>\n \n Ginkgo Street Labs; CiviCRM, LLC; and the CiviCRM community<\/author>\n inquire@ginkgostreet.com<\/email>\n <\/maintainer>\n 2016-08-10<\/releaseDate>\n 4.6-2.1.2<\/version>\n stable<\/develStage>\n \n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n Developed by Ginkgo Street Labs and CiviCRM, LLC with contributions from the community. Special thanks to Friends of Georgia State Parks & Historic Sites for funding the initial release, and to The Manhattan Neighborhood Network for funding the 1.4 release.\n <\/comments>\n \n CRM\/Volunteer<\/namespace>\n <\/civix>\n \n http:\/\/civicrm.github.io\/org.civicrm.volunteer\/docs<\/url>\n <\/urls>\nhttps:\/\/github.com\/civicrm\/org.civicrm.volunteer\/archive\/v4.6-2.1.2.zip<\/downloadUrl><\/extension>\n","nz.co.fuzion.csvimport":"\n\n csvimport<\/file>\n CSV GUI Import to api<\/name>\n Simply makes gui import available to api<\/description>\n AGPL<\/license>\n \n https:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.csvimport\/blob\/master\/README<\/url>\n https:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.csvimport\/blob\/master\/README<\/url>\n http:\/\/forum.civicrm.org<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n \n Eileen<\/author>\n eileen@fuzion.co.nz<\/email>\n <\/maintainer>\n 2016-06-11<\/releaseDate>\n 1.2<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n This is module which adds a UI to api create actions. There are no plans to provide free support for it<\/comments>\n \n CRM\/Csvimport<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.csvimport\/archive\/1.2.zip<\/downloadUrl><\/extension>\n","com.chrischinchilla.ewayrecurring":"\n\n ewayrecurring<\/file>\n eWay Recurring<\/name>\n Recurring payments payment processor for eWay<\/description>\n \n http:\/\/civicrm.org<\/url>\n http:\/\/civicrm.org<\/url>\n http:\/\/civicrm.org<\/url>\n http:\/\/civicrm.org<\/url>\n <\/urls>\n AGPL<\/license>\n \n Melbourne CiviCRM<\/author>\n noreply@civicrm.org<\/email>\n <\/maintainer>\n 2016-09-04<\/releaseDate>\n 1.2<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/Ewayrecurring<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/ChrisChinchilla\/CiviCRM-eWay-recurring-payment-processor\/archive\/1.2.zip<\/downloadUrl><\/extension>\n","nz.co.fuzion.entitysetting":"\n\n entitysetting<\/file>\n Entity Settings Helper Extension<\/name>\n This module provides a mechanism for managing settings associated with CiviCRM entities without a table per setting<\/description>\n AGPL<\/license>\n \n Eileen<\/author>\n eileen@fuzion.co.nz<\/email>\n <\/maintainer>\n 2016-06-17<\/releaseDate>\n \n http:\/\/civicrm.org<\/url>\n http:\/\/forum.civicrm.org<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n https:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.entitysetting\/blob\/master\/README.md<\/url>\n <\/urls>\n 1.2<\/version>\n stable<\/develStage>\n \n 4.2<\/ver>\n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n This extension is provided to be a 'soft' dependency for other extension. It does not provide functionality itself<\/comments>\n \n CRM\/Entitysetting<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.entitysetting\/archive\/1.2.zip<\/downloadUrl><\/extension>\n","biz.jmaconsulting.grantapplications":"\n\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.grantapplications\/archive\/v1.5.zip<\/downloadUrl>\n grantapplications<\/file>\n Grant Applications<\/name>\n This extension enhances profile creation for Grants. Applicants can submit online grant applications after filling in fields that are configured through CiviProfile. Core and custom grant fields can be added to CiviProfiles to collect information about various applicants that will be applying online for grants. Online grant application pages can be created and managed from the grant dashboard.<\/description>\n \n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.grantapplications\/issues?state=open<\/url>\n \n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.grantapplications\/wiki\/About-grant-applications\n <\/url>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.grantapplications\/blob\/4.7\/README.md<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n JMA Consulting<\/author>\n joe.murray@jmaconsulting.biz<\/email>\n <\/maintainer>\n 2016-03-30<\/releaseDate>\n 1.5<\/version>\n stable<\/develStage>\n \n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/Grantapplications<\/namespace>\n <\/civix>\n<\/extension>\n","biz.jmaconsulting.ode":"\n\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.ode\/archive\/v1.4.zip<\/downloadUrl>\n ode<\/file>\n Outbound Domain Enforcement<\/name>\n This CiviCRM extension is designed to preserve the email reputation of your server and its IP by ensuring that all outbound emailis sent from an address with the same domain as the System-generated Mail Settings From Email Address configured at Administer > Communications > Organization Address and Contact Info.<\/description>\n \n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.ode\/issues?state=open<\/url>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.ode\/blob\/master\/README.md<\/url>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.ode\/blob\/master\/README.md<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n AGPL 3.0<\/license>\n \n JMA Consulting<\/author>\n joe.murray@jmaconsulting.biz<\/email>\n <\/maintainer>\n 2016-04-04<\/releaseDate>\n 1.4<\/version>\n stable<\/develStage>\n \n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n Thanks to Brescia University College for sponsoring the development of this module.<\/comments>\n \n CRM\/Ode<\/namespace>\n <\/civix>\n<\/extension>\n","biz.jmaconsulting.olarkchat":"\n\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.olarkchat\/archive\/1.3.zip<\/downloadUrl>\n olarkchat<\/file>\n Olark Chat Integration<\/name>\n Olark is a chat service that enables web site visitors to chat with staff of an organization. It has a good set of features for services in this space (http:\/\/www.olark.com\/features). This extension integrates the service with CiviCRM by posting chat transcripts as CiviCRM activities attached to the visitor's existing or newly created contact record and assigned to the relevant staff person's record.<\/description>\n \n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.olarkchat\/issues?state=open<\/url>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.olarkchat\/blob\/1.0\/README.md<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n JMA Consulting<\/author>\n joe.murray@jmaconsulting.biz<\/email>\n <\/maintainer>\n 2016-02-26<\/releaseDate>\n 1.3<\/version>\n stable<\/develStage>\n \n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/Olarkchat<\/namespace>\n <\/civix>\n<\/extension>\n","com.pogstone.fancytokens":"\n\n fancytokens<\/file>\n Save time preparing newsletters: Fancy tokens for upcoming events, contribution pages, and forms<\/name>\n Additional tokens for contribution pages, upcoming event lists, individual event registration pages, and stand-alone CiviCRM profiles. If Drupal WebForm is in use, then any webforms that use CiviCRM integration will also be available as a token. All hyperlinks include the recipient checksum as appropriate. To see the additional tokens, start composing an email and click 'insert tokens'.<\/description>\n \n https:\/\/civicrm.org\/extensions\/fancy-tokens<\/url>\n https:\/\/civicrm.org\/extensions\/fancy-tokens<\/url>\n https:\/\/github.com\/sgladstone\/com.pogstone.fancytokens\/issues<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n Sarah Gladstone<\/author>\n info@fountaintribe.com<\/email>\n <\/maintainer>\n 2016-09-05<\/releaseDate>\n 4.0<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/Fancytokens<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/sgladstone\/com.pogstone.fancytokens\/archive\/4.0.zip<\/downloadUrl><\/extension>\n","com.aghstrategies.uscounties":"\n\n uscounties<\/file>\n US County Loader<\/name>\n Loads counties of the United States<\/description>\n AGPL-3.0<\/license>\n \n Andrew Hunt<\/author>\n andrew@aghstrategies.com<\/email>\n <\/maintainer>\n 2015-06-08<\/releaseDate>\n 1.1<\/version>\n stable<\/develStage>\n \n\t http:\/\/aghstrategies.com\/counties<\/url>\n <\/urls>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n Use this extension to load counties for the United States. After installation, this extension does nothing (and can even be disabled).<\/comments>\nhttps:\/\/github.com\/agh1\/com.aghstrategies.uscounties\/archive\/1.1.zip<\/downloadUrl><\/extension>\n","net.ourpowerbase.report.advancedfundraising":"\n\n advancedfundraising<\/file>\n Advanced Fundraising Reports<\/name>\n Reports to help fundraisers view their progress sponsored by PTP<\/description>\n \n http:\/\/wiki.civicrm.org\/confluence\/display\/CRM\/CiviEngage+Enhancements+for+fund-raising<\/url>\n <\/urls>\n agpl<\/license>\n \n Eileen McNaughton<\/author>\n eileen@fuzion.co.nz<\/email>\n <\/maintainer>\n 2016-08-01<\/releaseDate>\n 1.0.5<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/AdvancedFundraising<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/jmcclelland\/net.ourpowerbase.report.advancedfundraising\/archive\/v1.0.5.zip<\/downloadUrl><\/extension>\n","nz.co.fuzion.omnipaymultiprocessor":"\n\n omnipaymultiprocessor<\/file>\n Omnipay multiprocessor support<\/name>\n Support for Multiple processors using OmniPay library<\/description>\n AGPL<\/license>\n \n eileen<\/author>\n eileen@fuzion.co.nz<\/email>\n <\/maintainer>\n \n https:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.omnipaymultiprocessor<\/url>\n https:\/\/civicrm.org\/blogs\/eileen\/rethinking-payment-processing<\/url>\n http:\/\/forum.civicrm.org<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n 2016-06-17<\/releaseDate>\n 1.9<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n This module integrates the omnipay library with CiviCRM<\/comments>\n \n CRM\/Omnipaymultiprocessor<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/eileenmcnaughton\/nz.co.fuzion.omnipaymultiprocessor\/archive\/1.9.zip<\/downloadUrl><\/extension>\n","ca.bidon.civiexportexcel":"\n\n civiexportexcel<\/file>\n CiviCRM Export to Excel<\/name>\n Adds the possibility to export directly to Excel from CiviCRM.<\/description>\n AGPL3<\/license>\n \n Mathieu Lutfy<\/author>\n mathieu@symbiotic.coop<\/email>\n <\/maintainer>\n 2016-08-17<\/releaseDate>\n 1.8<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n Commercial support available from https:\/\/www.SymbioTIC.coop<\/comments>\n \n https:\/\/github.com\/mlutfy\/ca.bidon.civiexportexcel<\/url>\n https:\/\/github.com\/mlutfy\/ca.bidon.civiexportexcel\/blob\/master\/README.md<\/url>\n http:\/\/forum.civicrm.org\/index.php\/board,57.0.html<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n \n CRM\/CiviExportExcel<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/mlutfy\/ca.bidon.civiexportexcel\/archive\/1.8.zip<\/downloadUrl><\/extension>\n","eu.tttp.civisualize":"\n\n civisualize<\/file>\n Civisualize. The missing data visualization extension<\/name>\n Framework to generate easily (as in, if you know SQL and d3 at least) better visualisation about what's happening in your CiviCRM<\/description>\n aGPL<\/license>\n \n Xavier<\/author>\n xavier@tttp.eu<\/email>\n <\/maintainer>\n 2016-02-23<\/releaseDate>\n 1.42<\/version>\n stable<\/develStage>\n \n 4.3<\/ver>\n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n CRM\/Civisualize<\/namespace>\n <\/civix>\n\n http:\/\/github.com\/TechToThePeople\/civisualize<\/url>\n http:\/\/github.com\/TechToThePeople\/civisualize<\/url>\n http:\/\/forum.civicrm.org<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n<\/urls>\n\n\nhttps:\/\/github.com\/TechToThePeople\/civisualize\/archive\/v1.42.zip<\/downloadUrl><\/extension>\n","biz.jmaconsulting.bugp":"\n\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.bugp\/archive\/1.3.zip<\/downloadUrl>\n bugp<\/file>\n Batch Update of Grants via Profile<\/name>\n Batch Update of Grants via Profile\n This extension provides batch update functionality for grants similar that for contacts in CiviCRM core. Up to 50 grants can be edited simultanously in a table-like grid on a webpage.\n <\/description>\n \n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.bugp\/issues?state=open<\/url>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.bugp\/blob\/1.3\/README.md<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n JMA Consulting<\/author>\n joe.murray@jmaconsulting.biz<\/email>\n <\/maintainer>\n 2016-02-27<\/releaseDate>\n 1.3<\/version>\n stable<\/develStage>\n \n 4.7<\/ver>\n <\/compatibility>\n \n \n CRM\/biz.jmaconsulting.bugp<\/namespace>\n <\/civix>\n<\/extension>\n","com.pogstone.contenttokens":"\n\n contenttokens<\/file>\n Content Tokens<\/name>\n This extension provides mail merge tokens that list various content. If running under Drupal, then there are tokens for each content type, taxonomy term, and feed items. If running under WordPress then there are tokens for each post type and post term. If running under Joomla then there are tokens for each type and category. This is meant to help save time when preparing an email newsletter. If used in combination with a CMS aggregator (Such as the core Drupal aggregator module), then tokens are available for virtually any content source, local or remote. <\/description>\n AGPL-3.0<\/license>\n \n Sarah Gladstone<\/author>\n info@fountaintribe.com<\/email>\n <\/maintainer>\n 2016-07-26<\/releaseDate>\n 3.1<\/version>\n stable<\/develStage>\n \nhttp:\/\/fountaintribe.com<\/url>\nhttps:\/\/github.com\/sgladstone\/com.pogstone.contenttokens<\/url>\n<\/urls>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n This extension checks which CMS its running under before attempting to do CMS-specific things. It has been tested primarily with Drupal 6, Drupal 7, and Joomla 3. It should work under WordPress, but testing has been limited. Its safe to install under any CMS or stand-alone. However no useful functionality is provided for CiviCRM stand-alone. (Please help improve this on GitHub at https:\/\/github.com\/sgladstone\/com.pogstone.contenttokens). The formatting of the results is fairly simple: each item is wrapped in a DIV tag and relative URLs are converted to absolute URLs. The original formatting from the content item is not altered. <\/comments>\n \n CRM\/Contenttokens<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/sgladstone\/com.pogstone.contenttokens\/archive\/3.1.zip<\/downloadUrl><\/extension>\n","com.webaccessglobal.simpledonate":"\n\n https:\/\/github.com\/webaccess\/com.webaccessglobal.simpledonate\/archive\/1.2.zip<\/downloadUrl>\n simpledonate<\/file>\n Simple Donate<\/name>\n Simplified donation form<\/description>\n \n \n https:\/\/civicrm.org\/extensions\/simple-donate\n <\/url>\n https:\/\/github.com\/webaccess\/com.webaccessglobal.simpledonate\/blob\/master\/README.md<\/url>\n https:\/\/github.com\/webaccess\/com.webaccessglobal.simpledonate\/issues<\/url>\n http:\/\/civicrm.org\/licensing<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n Web Access<\/author>\n info@webaccessglobal.com<\/email>\n <\/maintainer>\n 2016-04-12<\/releaseDate>\n 1.2<\/version>\n stable<\/develStage>\n \n 4.7<\/ver>\n <\/compatibility>\n For support, please contact the team on github. (https:\/\/github.com\/webaccess\/com.webaccessglobal.simpledonate\/issues)<\/comments>\n \n CRM\/SimpleDonate<\/namespace>\n <\/civix>\n<\/extension>\n","uk.co.vedaconsulting.module.civicrmpostcodelookup":"\n\n civicrmpostcodelookup<\/file>\n CiviCRM Postcode Lookup<\/name>\n Extension to enable postcode lookup feature in CiviCRM using AFD, Civipostcode, Experian or PostcodeAnywhere.<\/description>\n AGPL-3.0<\/license>\n \n Parvez Saleh<\/author>\n parvez@vedaconsulting.co.uk<\/email>\n <\/maintainer>\n \n https:\/\/civicrm.org\/extensions\/postcode-lookup-civicrm<\/url>\n https:\/\/github.com\/veda-consulting\/uk.co.vedaconsulting.module.civicrmpostcodelookup\/blob\/master\/README.md<\/url>\n https:\/\/github.com\/veda-consulting\/uk.co.vedaconsulting.module.civicrmpostcodelookup<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n 2016-08-04<\/releaseDate>\n 1.3<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n Developed by Veda NFP Consulting LTD.<\/comments>\n \n CRM\/Civicrmpostcodelookup<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/veda-consulting\/uk.co.vedaconsulting.module.civicrmpostcodelookup\/archive\/v1.3.zip<\/downloadUrl><\/extension>\n","org.civicoop.documents":"\n\n documents<\/file>\n Documenten<\/name>\n Documenten opslag in CiviCRM voor PUM<\/description>\n AGPL-3.0<\/license>\n \n CiviCooP<\/author>\n helpdesk@civicoop.org<\/email>\n <\/maintainer>\n \n https:\/\/guthub.com\/CiviCooP\/org.civicoop.documents<\/url>\n https:\/\/guthub.com\/CiviCooP\/org.civicoop.documents\/README.md<\/url>\n http:\/\/civicoop.org<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n 2016-05-03<\/releaseDate>\n 1.5<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n Extension is live at several clients<\/comments>\n \n CRM\/Documents<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/CiviCooP\/org.civicoop.documents\/archive\/1.5.zip<\/downloadUrl><\/extension>\n","com.aghstrategies.idbsurvey":"\n\n idbsurvey<\/file>\n Individual Donor Benchmark Survey 2016<\/name>\n Calculates donor data to compare to other nonprofits in the Individual Donor Benchmark Survey.<\/description>\n \n https:\/\/civicrm.org\/extensions\/individual-donor-benchmark-survey-report<\/url>\n https:\/\/civicrm.org\/extensions\/individual-donor-benchmark-survey-report<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n AGH Strategies<\/author>\n info@aghstrategies.com<\/email>\n <\/maintainer>\n 2016-03-08<\/releaseDate>\n 2.0<\/version>\n stable<\/develStage>\n \n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n CRM\/Idbsurvey<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/aghstrategies\/com.aghstrategies.idbsurvey\/archive\/v2.0.zip<\/downloadUrl><\/extension>\n","biz.jmaconsulting.printgrantpdfs":"\n\n printgrantpdfs<\/file>\n Print Grants as PDF<\/name>\n Enhances the print grants to include custom fields and attachments while generating PDFs<\/description>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.printgrantpdfs\/archive\/v1.2.zip<\/downloadUrl>\n AGPL-3.0<\/license>\n \n JMA Consulting<\/author>\n joe.murray@jmaconsulting.biz<\/email>\n <\/maintainer>\n \n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.printgrantpdfs\/issues?state=open<\/url>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.printgrantpdfs\/blob\/1.2\/README.md<\/url>\n https:\/\/github.com\/JMAConsulting\/biz.jmaconsulting.printgrantpdfs\/blob\/1.2\/README.md<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n 2016-02-27<\/releaseDate>\n 1.2<\/version>\n stable<\/develStage>\n \n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n This extension supports printing Grants to PDFs for download. Custom fields and attached files are included in the PDF. Printing Word documents attachments depends on the unoconv library from LibreOffice, which requires about half of LibreOffice to be installed.<\/comments>\n \n CRM\/Printgrantpdfs<\/namespace>\n <\/civix>\n<\/extension>\n","com.aghstrategies.tinymce":"\n\n tinymce<\/file>\n TinyMCE<\/name>\n Adds TinyMCE as a WYSIWYG editor for CiviCRM<\/description>\n AGPL-3.0<\/license>\n \n Tyrell Cook<\/author>\n tyrell@aghstrategies.com<\/email>\n <\/maintainer>\n http:\/\/www.tinymce.com<\/url>\n https:\/\/civicrm.org\/extensions\/tinymce<\/url>\n 2016-01-31<\/releaseDate>\n 1.3<\/version>\n stable<\/develStage>\n \n 4.7<\/ver>\n <\/compatibility>\n TinyMCE version 4.3.3<\/comments>\n \n CRM\/Tinymce<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/relldoesphp\/com.aghstrategies.tinymce\/archive\/1.3.zip<\/downloadUrl><\/extension>\n","org.woolman.genderselfidentify":"\n\n genderselfidentify<\/file>\n Gender Self-Identify<\/name>\n A more inclusive way to input gender in CiviCRM.<\/description>\n AGPL-3.0<\/license>\n \n Coleman Watts<\/author>\n coleman@civicrm.org<\/email>\n <\/maintainer>\n \n https:\/\/civicrm.org\/extensions\/gender-self-identify<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n 2015-10-17<\/releaseDate>\n 1.2<\/version>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n There are no configuration options for this extension. Simply install it and users will be able to enter gender in an unrestricted way.<\/comments>\n \n CRM\/Genderselfidentify<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/woolman\/genderselfidentify\/archive\/1.2.zip<\/downloadUrl>stable<\/develStage><\/extension>\n","org.civicrm.angularprofiles":"\n\n angularprofiles<\/file>\n Angular Profiles<\/name>\n A Utility extension that provides Profile support to AngularJS pages<\/description>\n AGPL-3.0<\/license>\n \n Tobias Lounsbury<\/author>\n toby@ginkgostreet.com<\/email>\n <\/maintainer>\n 2016-06-20<\/releaseDate>\n 4.6-1.0.2<\/version>\n stable<\/develStage>\n \n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n \n This extension is a utility for allowing AngularJS pages to load CiviCRM's Backbone.js-based profile editor\/selector\n widget. It comes prebuilt with a service for loading Backbone.js and necessary files as well as an AngularJS directive\n to turn a standard input into the profile widget.\n <\/comments>\n \n CRM\/AngularProfiles<\/namespace>\n <\/civix>\n \n https:\/\/github.com\/ginkgostreet\/org.civicrm.angularprofiles<\/url>\n <\/urls>\nhttps:\/\/github.com\/ginkgostreet\/org.civicrm.angularprofiles\/archive\/v4.6-1.0.2.zip<\/downloadUrl><\/extension>\n","coop.palantetech.nodrilldown":"\n\n nodrilldown<\/file>\n No Drill Down<\/name>\n When viewing reports, clicking on a contact's name brings you to the contact's record, not their Contact Detail Report or Contribution Detail Report.<\/description>\n AGPL-3.0<\/license>\n \n Jon Goldberg<\/author>\n jon@palantetech.coop<\/email>\n <\/maintainer>\n \n https:\/\/github.com\/PalanteJon\/coop.palantetech.nodrilldown<\/url>\n https:\/\/github.com\/PalanteJon\/coop.palantetech.nodrilldown\/README.md<\/url>\n https:\/\/github.com\/PalanteJon\/coop.palantetech.nodrilldown<\/url>\n http:\/\/www.gnu.org\/licenses\/agpl-3.0.html<\/url>\n <\/urls>\n 2016-02-10<\/releaseDate>\n 1.0<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n There is no unpaid support for this module - but if you submit a bugfix, I'll try to merge it.<\/comments>\n \n CRM\/Nodrilldown<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/PalanteJon\/coop.palantetech.nodrilldown\/archive\/1.0.zip<\/downloadUrl><\/extension>\n","eu.tttp.bootstrapvisualize":"\n\n bootstrapvisualize<\/file>\n Bootstrap layout for civisualize<\/name>\n If you theme is already based on boostrap, civisualize works fine out of the box. If you don't, enable this extension that will add the missing stylesheets so the default datavisualisations work fine<\/description>\n MIT<\/license>\n \n xavier<\/author>\n xavier@tttp.eu<\/email>\n <\/maintainer>\n \n https:\/\/github.com\/TechToThePeople\/bootstrapvisualize<\/url>\n https:\/\/github.com\/TechToThePeople\/bootstrapvisualize<\/url>\n https:\/\/github.com\/TechToThePeople\/bootstrapvisualize<\/url>\n https:\/\/opensource.org\/licenses\/MIT<\/url>\n <\/urls>\n 2016-02-23<\/releaseDate>\n 1.0<\/version>\n \n 4.2<\/ver>\n 4.3<\/ver>\n 4.4<\/ver>\n 4.5<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n I'm not sure about the license, take the one from bootstrap<\/comments>\n \n CRM\/Bootstrapvisualize<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/TechToThePeople\/bootstrapvisualize\/archive\/v1.0.zip<\/downloadUrl>stable<\/develStage><\/extension>\n","com.cividesk.email.sparkpost":"\n\n sparkpost<\/file>\n SparkPost integration<\/name>\n This extension allows CiviCRM to send emails and process bounces through the SparkPost service.<\/description>\n \n https:\/\/github.com\/cividesk\/com.cividesk.email.sparkpost<\/url>\n https:\/\/github.com\/cividesk\/com.cividesk.email.sparkpost<\/url>\n https:\/\/github.com\/cividesk\/com.cividesk.email.sparkpost\/issues?state=open<\/url>\n <\/urls>\n AGPL-3.0<\/license>\n \n Cividesk<\/author>\n info@cividesk.com<\/email>\n <\/maintainer>\n 2016-05-18<\/releaseDate>\n 1.1<\/version>\n stable<\/develStage>\n \n 4.4<\/ver>\n 4.6<\/ver>\n 4.7<\/ver>\n <\/compatibility>\n As always, read the documentation first! Once the extension is enabled, go to Administer >> System Settings >> Outboud Email (SparkPost) to configure and send a test email.<\/comments>\n \n CRM\/Sparkpost<\/namespace>\n <\/civix>\nhttps:\/\/github.com\/cividesk\/com.cividesk.email.sparkpost\/archive\/v1.1.zip<\/downloadUrl><\/extension>\n"} \ No newline at end of file diff --git a/tests/phpunit/api/v3/ExtensionTest.php b/tests/phpunit/api/v3/ExtensionTest.php new file mode 100644 index 0000000000..1c044d2f05 --- /dev/null +++ b/tests/phpunit/api/v3/ExtensionTest.php @@ -0,0 +1,60 @@ +set('ext_repo_url', $url); + } + + public function tearDown() { + Civi::settings()->revert('ext_repo_url'); + } + + /** + * Test getremote. + */ + public function testGetremote() { + $result = $this->callAPISuccess('extension', 'getremote', array()); + $this->assertEquals('org.civicrm.module.cividiscount', $result['values'][0]['key']); + $this->assertEquals('module', $result['values'][0]['type']); + $this->assertEquals('CiviDiscount', $result['values'][0]['name']); + } + +} -- 2.25.1