Civi\Test::example() - Make it a bit easier for the typical case
authorTim Otten <totten@civicrm.org>
Wed, 15 Sep 2021 09:02:05 +0000 (02:02 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 15 Sep 2021 23:15:14 +0000 (16:15 -0700)
commit52b4f292fd8b8d7e702fc49bdebbeb8a9bb8ed62
tree4348da94043fbb1bb0f1599a1af875573732a0c4
parent1b4483d04a25956f3817217f66ee98f552816634
Civi\Test::example() - Make it a bit easier for the typical case

This changes the signature on a new helper method. This method is not widely used, and each reference is updated here.

Before: `Civi\Test::example($name)` returns the *metadata* for the example.

After: `Civi\Test::example($name)` returns the *data* for the example.

Comment: It's more convenient to stitch together examples from the data.  Of
course, metadata may also be useful -- it's still available through
`Civi\Test::examples()->getFoo(...)` (with a few different `getFoo()`
methods).
Civi/Test.php
tests/phpunit/CRM/Case/WorkflowMessage/CaseActivity/CaseAdhocExample.ex.php
tests/phpunit/CRM/Case/WorkflowMessage/CaseActivity/CaseModelExample.ex.php