Commit 81de2bab authored by DaveD's avatar DaveD
Browse files

Merge branch 'hookfix' into 'master'

Fix install/uninstall in hooktest

See merge request !154
parents df04113d 5c54cc8b
use Civi\Test\HeadlessInterface;
* Tips:
* - With HookInterface, you may implement CiviCRM hooks directly in the test class.
* Simply create corresponding functions (e.g. "hook_civicrm_post(...)" or similar).
* - With TransactionalInterface, any data changes made by setUp() or test****() functions will
* rollback automatically -- as long as you don't manipulate schema or truncate tables.
* If this test needs to manipulate schema or truncate tables, then either:
* a. Do all that using setupHeadless() and Civi\Test.
* b. Disable TransactionalInterface, and handle all setup/teardown yourself.
* @group headless
class CRM_Cdntaxreceipts_HookTest extends \CiviUnitTestCase implements HeadlessInterface {
public function setUpHeadless() {
// Civi\Test has many helpers, like install(), uninstall(), sql(), and sqlFile().
// See:
return \Civi\Test::headless()
class CRM_Cdntaxreceipts_HookTest extends CRM_Cdntaxreceipts_Base {
* Test eligibleAmount
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment