Documentation

ReportTest extends TestCase
in package
implements HeadlessInterface, HookInterface, TransactionalInterface

Test CiviReport functionality.

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.
Tags
group

headless

Table of Contents

Interfaces

HeadlessInterface
Interface HeadlessInterface
HookInterface
TransactionalInterface
Interface HeadlessInterface

Methods

setUpHeadless()  : CiviEnvBuilder
Setup used when HeadlessInterface is implemented.
testMakeCsv()  : void
Test makeCsv functionality.

Methods

testMakeCsv()

Test makeCsv functionality.

public testMakeCsv() : void

Include some special characters to check they are handled.


        
On this page

Search results