CiviApiImportTest
extends TestCase
in package
implements
HeadlessInterface, HookInterface
FIXME - Add test description.
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
Table of Contents
Interfaces
- HeadlessInterface
- Interface HeadlessInterface
- HookInterface
Methods
- setUpHeadless() : CiviEnvBuilder
- Setup used when HeadlessInterface is implemented.
- tearDown() : void
- testApiActions() : void
- Test the CRUD api actions work for the Import classes.
- createUserJobTable() : void
- Create a table for our Import api.
Methods
setUpHeadless()
Setup used when HeadlessInterface is implemented.
public
setUpHeadless() : CiviEnvBuilder
Civi\Test has many helpers, like install(), uninstall(), sql(), and sqlFile().
Tags
Return values
CiviEnvBuildertearDown()
public
tearDown() : void
Tags
testApiActions()
Test the CRUD api actions work for the Import classes.
public
testApiActions() : void
Tags
createUserJobTable()
Create a table for our Import api.
private
createUserJobTable([mixed $tableName = 'abc' ]) : void
Parameters
- $tableName : mixed = 'abc'