Add require_once to api3TestTrait
authoreileen <emcnaughton@wikimedia.org>
Tue, 4 Feb 2020 02:11:11 +0000 (15:11 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 4 Feb 2020 02:11:11 +0000 (15:11 +1300)
commit7f32c217f72729d47fb8cbc00a7496f40e34a3c8
treeb528f4ba37097fbc9ad45ed8a57bfa4ff088fde1
parent67b7cfa19f3cd398d3b2538681cb7311a9c6fa79
Add require_once to api3TestTrait

I used this trait from an extension but it was used with apiv4 before apiv3 (it supports both).

I got an error because utils.php is not included by this file. It 'freeloads' off the fact apiv3 initialises
the file - but in fact the file that includes a function requiring a function
should have the require once - reduces risk & cognitive load
Civi/Test/Api3TestTrait.php