Extract 2 tests from AfformRoutingTest to mockPublicForm. Make example work.
authorTim Otten <totten@civicrm.org>
Wed, 10 Feb 2021 22:33:30 +0000 (14:33 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 17 Feb 2021 09:24:25 +0000 (01:24 -0800)
commit2290426f86e94351a461115515936dac40f267ca
treef993a49caf673b7c7ec97d4b89ef593a50b226f1
parenta203607e38b648e3d769d4d1a707f0267ba90779
Extract 2 tests from AfformRoutingTest to mockPublicForm. Make example work.

These two cases rely on setting up the same fixture. It's easier to try out/debug if
the fixture is live/available as a matter of course.

Tangentially, if you try to use this form (whether as anonymous or as admin, it doesn't -- e.g.
because it doesn't have a "Submit" button. So this updates it.
ext/afform/mock/ang/mockPublicForm.aff.html [new file with mode: 0644]
ext/afform/mock/ang/mockPublicForm.aff.json [new file with mode: 0644]
ext/afform/mock/ang/mockPublicForm.test.php [new file with mode: 0644]
ext/afform/mock/tests/phpunit/api/v4/AfformRoutingTest.php