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) »
  • Testing Case & ActivityCase: need help
Pages: [1]

Author Topic: Testing Case & ActivityCase: need help  (Read 1751 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Testing Case & ActivityCase: need help
May 08, 2011, 11:26:54 am
Hi,

Nothing is tested on api.case, and I have a lot of stuff that behave unexpectedly.

I don't know enough about case if it's a bug or a feature, would need one of the core to help me.

In no particular order:
1) Can an activity belong to several cases? what's the point of a separate table instead of a case_id in civicrm_activity?

2) creating an activity with param ['case_id'] doesn't create a an activity. Looking at the code in Activity, seems to depend on the text [case xxx] in the subject (?!) to trigger the link (?!)

That one I fixed in the api.activity (revision 34165), not sure it was the right place.

A lot of action and activities seems to create "magic around" (eg when you change the status it creates and activity, when you change client it create a new case...). Is this described somewhere ?

Or am I blind and the case api is already tested floor to bottom ?

« Last Edit: May 08, 2011, 11:34:46 am by xavier »
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • Testing Case & ActivityCase: need help

This forum was archived on 2017-11-26.