Questions tagged [testing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

Contribution Test Pages work only for Amount = $1.00

I hesitated to raise this issue because I've probably made a real rookie mistake somewhere. My Contribution Pages work fine in production mode but the transactions are not recorded in CiviCRM when I ...
user avatar
0 votes
1 answer
40 views

Contribution Pages are not working in Test-Drive Mode

I revisited some Contribution Pages which are working fine in "live" mode. (The credit card transactions are processed and CiviCRM records are updated.) I just discovered that those pages ...
user avatar
1 vote
0 answers
40 views

CiviCRM - Mosaico - Test window opens but buttons are not clickable?

Drupal - 9.3.9 CiviCRM - 5.47.4 Mosaico - 2.8 -> Attempted upgrade but ran into the issue being tracked on github, so downgraded back to 2.8. When composing a CiviCRM mailing using Mosaico, no ...
user avatar
  • 73
0 votes
0 answers
40 views

Failing to send test email

I'm trying to send a test email to myself but it keeps showing me this message:"Could not identify any recipients. Perhaps your test group is empty, or you tried sending to contacts that do not ...
user avatar
2 votes
2 answers
67 views

How to set Stripe test mode on both Stripe & Webform-CiviCRM

I am attempting to test a webform that renews membership. I have set Stripe dashboard to 'Test mode' but when I submit a test credit card (4242 etc) I get tbe message from Stripe 'Your card was ...
user avatar
  • 4,263
0 votes
1 answer
16 views

How to change TO option in Outgoing email setup

Newbie here. I've just installed CiviCRM in a Wordpress site and am currently configuring. When setting up the outbound email, it propagates this "TO" address. This address doesn't exist and ...
user avatar
1 vote
1 answer
36 views

Cyber security penetration testing

As part of our annual information governance review we have to answer a question on whether all of the suppliers of our systems have cyber certifications. CiviCRM as open source software is a bit ...
user avatar
  • 624
0 votes
1 answer
15 views

Searching for Test Contributions

I have just started making contributions in Test mode. I understand that "Test contributions are not visible on the Contributions tab, but can be viewed by searching for 'Test Contributions' in ...
user avatar
1 vote
1 answer
53 views

Why does phpunit say "DB Error: connect failed" for new 'drupal-clean' site?

I have a new 'drupal-clean' civibuild site which works fine in the browser, yet when I try to run civicrm phpunit tests, I get a mysql connection error, "DB Error: connect failed". How can I ...
user avatar
  • 1,640
1 vote
1 answer
31 views

not of type Boolean error message when testing Stripe in Test Mode

I am getting the following error message when testing Stripe recurring membership dues in test mode: Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to ...
user avatar
  • 67
0 votes
1 answer
71 views

Mailing_send_test - job_id is not valid

I am having a "Error in call to Mailing_send_test : job_id is not valid : 14" when I send test email in Mosaico (to one email or to a group) whereas email settings are working perfectly. My mailing ...
user avatar
  • 1
5 votes
1 answer
55 views

how to write PHP Unit test for an entity using hooks

I am to write a unit test for a simple extension using hooks with postprocess and formbuild. How can I do it? Please provide some example.
user avatar
9 votes
1 answer
153 views

How to find out about changes in the latest Release Candidate?

We would like to help test the monthly CiviCRM Release Candidate (RC) versions to contribute to more reliable releases. I found out the RC are published here along with the stable releases, so e.g. ...
user avatar
1 vote
1 answer
35 views

How can I see all test data in CiviCRM?

I'm doing tests on a test server, but when I make changes using test data, the test data is hidden. I know this is by design, but it makes it impossible to actually check if things are working. I ...
user avatar
3 votes
0 answers
32 views

testing extensions without buildkit

We have a civicrm instance which we installed from the download page on civicrm.org, not via buildkit. We also have a bunch of custom extensions specific for our use case. Until now these extensions ...
user avatar
  • 175
3 votes
3 answers
370 views

ER diagram for the latest Civicrm , Foreign key in Structure, test cases/plans

Where can I get the ER diagram for the latest CiviCRM? I need it for internal reporting purposes in our organization. I am able to download the Table structure from phpMyAdmin. However, it does not ...
user avatar
0 votes
1 answer
32 views

Creating a copy of CiviCRM on a test sub-domain (Wordpress)

I need simple step-by-step procedure to copy my current production site to a sub-domain on the same server, that we intend using for testing/development (its important that we retain all our custom ...
user avatar
  • 695
3 votes
2 answers
78 views

How to reset the headless test db?

I'm using headless phpunit tests. I noticed that the first time I do this it pauses and says about installing schema for xxxx - a test database. If you break stuff enough, you can end up with a ...
user avatar
  • 3,688
2 votes
1 answer
50 views

How to build a Real Size Drupal+Civi Test Configuration?

I have installed a Drupal+Civi test site, with same software level as my production site (Drupal 7.54 / Civi 4.7.16). To be able to make real size tests, I want to have identical DBs on each site. ...
user avatar
1 vote
1 answer
25 views

Quality assurance considerations for membership signups

I'm pretty new to the CiviCRM world and am just finishing my first project using it. We are now in the process of making sure that our membership signup procedure (with contributions) works well. As I ...
user avatar
  • 247
1 vote
0 answers
78 views

Does CiviCRM have a recommended setting for zend.multibyte?

When running CiviCRM test suites, I see PHP Warning: declare(encoding=...) ignored because Zend multibyte feature is turned off by settings in /path/to/sites/all/modules/civicrm/vendor/...
user avatar
2 votes
1 answer
51 views

Can't accesss cv from CiviUnitTestCase::createExternalAPI in buildkit environment

I'm QAing https://github.com/civicrm/civicrm-core/pull/9255 and trying to run a couple of relevant test locally: ~/src/civicrm-buildkit/build/qa/sites/all/modules/civicrm$ tools/scripts/phpunit ...
user avatar
1 vote
1 answer
61 views

Can cv handle custom Wordpress installs?

A wordpress install I'm adding CiviCRM to is setup in a non-standard way, specifically: docroot \- civicrm.settings.php \- wp-config.php \- content/ | \- plugins | | \- civicrm | \- uploads | \...
user avatar
  • 3,688
4 votes
2 answers
79 views

How to bootstrap CiviCRM with admin permissions in a Wordpress environment?

I'm using eval cv php:boot in a script. I need to be able to delete a contact in the script, including the skip_undelete flag, but this action is denied - get a "could not delete contact" error. I ...
user avatar
  • 3,688
4 votes
2 answers
101 views

Can I mock the CiviCRM API for unit tests?

Suppose I want to mock the API in unit tests for my extension, can I do that? Or should I implement an interface myself that is just a wrapper around civicrm_api3, and create mocks of that interface? ...
user avatar
  • 402
2 votes
2 answers
33 views

How to write unit tests for methods thsat echo instead of return (e.g., AJAX call handlers)

There are several methods in CiviCRM that just print their output directly to the buffer and then exit, because they're just sending an HTML snippet or other response for an AJAX call. For example, ...
user avatar
  • 1,640
5 votes
1 answer
74 views

Easy way to read email on staging sites?

Staging and development sites typically have real outbound email turned off, and for good reason (see https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+CiviCRM+instance+from+production+to+...
user avatar
  • 1,640
5 votes
1 answer
82 views

How to test for CiviCRM status messages in selenium?

CiviCRM presents status messages in a slick overlay, which looks neat for human users but has been hard for me to test for in Selenium. It appears the messages first appear within the main page ...
user avatar
  • 1,640
5 votes
1 answer
199 views

Testing a module which uses CiviCRM php api

I have written a drupal module that uses the CiviCRM api. I want to build tests for my module. Drupal 7 includes the simpletest module in core, so I'm using that. I have created the following test: ...
user avatar
1 vote
3 answers
136 views

Command failed (cv php:boot --level=settings) when trying to run tests

I'm trying to run CiviCRM's unit tests, but I hit on this error when running scripts/phpunit AllTests: RuntimeException: Command failed (cv php:boot --level=settings) in ...tests\phpunit\CiviTest\...
user avatar
  • 1,917
2 votes
0 answers
30 views

Subscriber User on WordPress Demo Site

I've been running into a few issues on my CiviCRM installs that would be nice to test against the demo site. However, because there is no subscriber level user on the demo, and I can't seem to create ...
user avatar
  • 1,116
9 votes
1 answer
95 views

What versions of PHP are used in CiviCRM's internal QA?

The wiki currently states that CiviCRM has bare minimum (5.3.10) and recommended (>= 5.4) PHP requirements. Knowing what CiviCRM has been tested with can help identify what should be expected to work ...
user avatar
2 votes
1 answer
369 views

Is it possible to use Windows & Cygwin to run Selenium tests or does Selenium require a VM?

I know documentation suggests using a virtual machine w/Windows, but I don't know anything (yet) about Selenium /limitations so am asking
user avatar