Declare paid event as example data, call from test
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 22 May 2023 00:59:53 +0000 (12:59 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 22 May 2023 20:41:24 +0000 (08:41 +1200)
commit6bc84c7f7bf3107d3a7c46e4b5ef8a4958d5a27f
tree98c2315a68913c34351de58b960e29fb1020aa3b
parent6924a00d3abd5adf7d0d78f2535e2f8e2d2226c7
Declare paid event as example data, call from test

I'm looking to create some set up helper classes in
the Civi\Test space, to also be available to extensions
& to standardise some of the set up routines.

I figured the best place to put the ExampleData
was in the structure created for that.

The ExampleData structure is lightly used by
the WorkflowMessage::render() function for personal
entities (ie Contact,Contribution) but it
is not used (& probably won't be) for
configuration entities. However, the examples
are intended to be multi-purpose so I think it is the right location.

Note the trait that builds on it will have to have
a lot more logic to build price sets etc than the exampleData
space really supports
Civi/Test/ExampleData/Contact/Alex.php
Civi/Test/ExampleData/Contact/Barb.php
Civi/Test/ExampleData/Event/PaidEvent.php [new file with mode: 0644]
tests/phpunit/CRM/Core/Payment/BaseIPNTest.php
tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
tests/phpunit/CRM/Utils/TokenConsistencyTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContributionTest.php