CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • this looks cooler
Pages: [1]

Author Topic: this looks cooler  (Read 3912 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
this looks cooler
May 09, 2011, 02:38:37 pm
Hi,

I just noticed the way the set-up is done in the BAO test in class CRM_Pledge_BAO_PaymentTest - is this something new & clever you have been working on or was it always there?

      $payment = CRM_Core_DAO::createTestObject('CRM_Pledge_BAO_Payment');

In addition to allowing tidier test scripts if this works how it appears to it really extends our automated testing options
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • this looks cooler

This forum was archived on 2017-11-26.