Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8985

Fix WebTests to pass db name through command line

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.6
    • Fix Version/s: 3.3.7
    • Component/s: Test suite
    • Labels:
      None

      Description

      In webtest sometimes we need db records for assertions/ to build parameters, by default test suite connect to the 'civicrm_test_dev', now we can pass database name through command line as
      -b[database_name]

      eg:
      tools$ scripts/phpunit -u [user_name] -p[pass] -h [host] -b[db_name] WebTest_Mailing_MailingTest

        Attachments

          Activity

            People

            • Assignee:
              rohan Rohan S. Chavan
              Reporter:
              rajan Rajan P Mayekar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: