Cleanup signature for test function getFormObject
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 31 Aug 2023 07:41:01 +0000 (19:41 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 31 Aug 2023 11:27:05 +0000 (23:27 +1200)
commit89a8bf5aa79a8098ac48542ad49b6db2913b62b4
tree421f3c3024d50c797d7ddaa8d3589204fa74c61a
parenta9388e70d710eb9f04513a0331916e9eb919434a
Cleanup signature for test function getFormObject

I want to make form test functions available outside core (to wean some extensions off calling methods on the
forms that we no longer call from core. They were copy & paste from when we did). Also, I want to have some nicer form
functions.

I think getFormObject is OK-ish but I don't like the parameters that are there to support
search tests, so I am trying to split that out to allow signature change on the main function
tests/phpunit/CRM/Activity/BAO/ActivityTest.php
tests/phpunit/CRM/Contact/Form/Task/PrintDocumentTest.php
tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php
tests/phpunit/CRM/Contribute/Form/Task/EmailTest.php
tests/phpunit/CRM/Contribute/Form/Task/PDFTest.php
tests/phpunit/CRM/Contribute/Form/TaskTest.php
tests/phpunit/CRM/Event/Form/Task/BadgeTest.php
tests/phpunit/CRM/Mailing/Form/Task/AdhocMailingTest.php
tests/phpunit/CRM/Member/Form/Task/LabelTest.php
tests/phpunit/CRM/Member/Form/Task/PDFLetterTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php