PropertyBagTest
extends TestCase
in package
implements
HeadlessInterface, TransactionalInterface
Tags
Table of Contents
Interfaces
- HeadlessInterface
- Interface HeadlessInterface
- TransactionalInterface
- Interface HeadlessInterface
Methods
- otherParamsDataProvider() : mixed
- Data provider for testOtherParams $prop, $legacy_names, $valid_values, $invalid_values
- setAmountDataProvider() : mixed
- setUpHeadless() : CiviEnvBuilder
- The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
- testBillingCountry() : void
- Billing country is a mess.
- testEmpty() : void
- testGetCustomPropFails() : void
- Test we get NULL for custom prop that was not set.
- testGetterAndSetter() : void
- Test generic getter, setter methods.
- testMergeInputs() : void
- testOtherParams() : mixed
- testRecurProcessorIDNull() : void
- Test that null is valid for recurring contribution ID.
- testRequire() : void
- Test the require method works.
- testSetAmount() : mixed
- Test we can set an amount.
- testSetBillingEmailLegacy() : void
- Test that emails set by the legacy method of 'email-5' can be retrieved with getEmail.
- testSetContactID() : void
- Test we can set a contact ID.
- testSetContactIDFailsIfInvalid() : void
- Test we cannot set an invalid contact ID.
- testSetContactIDLegacyWay() : void
- Test we can set a contact ID the wrong way
- testSetCustomProp() : void
- Test we can set and access custom props.
- testSetCustomPropFails() : void
- Test we can't set a custom prop that we know about.
- testUtilsArray() : void
- Test retrieves using CRM_Utils_Array::value still work.
Methods
otherParamsDataProvider()
Data provider for testOtherParams $prop, $legacy_names, $valid_values, $invalid_values
public
otherParamsDataProvider() : mixed
return array
setAmountDataProvider()
public
setAmountDataProvider() : mixed
setUpHeadless()
The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
public
setUpHeadless() : CiviEnvBuilder
Return values
CiviEnvBuildertestBillingCountry()
Billing country is a mess.
public
testBillingCountry() : void
testEmpty()
public
testEmpty() : void
testGetCustomPropFails()
Test we get NULL for custom prop that was not set.
public
testGetCustomPropFails() : void
This is only for backward compatibility/ease of transition. One day it would be nice to throw an exception instead.
testGetterAndSetter()
Test generic getter, setter methods.
public
testGetterAndSetter() : void
testMergeInputs()
public
testMergeInputs() : void
testOtherParams()
public
testOtherParams(mixed $prop, mixed $legacy_names, mixed $valid_values, mixed $invalid_values) : mixed
Parameters
- $prop : mixed
- $legacy_names : mixed
- $valid_values : mixed
- $invalid_values : mixed
Tags
testRecurProcessorIDNull()
Test that null is valid for recurring contribution ID.
public
testRecurProcessorIDNull() : void
See https://github.com/civicrm/civicrm-core/pull/17292
testRequire()
Test the require method works.
public
testRequire() : void
testSetAmount()
Test we can set an amount.
public
testSetAmount(mixed $value, mixed $expect[, string $expectedExceptionMessage = '' ]) : mixed
Parameters
- $value : mixed
-
input
- $expect : mixed
-
output expected. Typically a string like '1.23' or NULL
- $expectedExceptionMessage : string = ''
-
if there is one expected.
Tags
testSetBillingEmailLegacy()
Test that emails set by the legacy method of 'email-5' can be retrieved with getEmail.
public
testSetBillingEmailLegacy() : void
testSetContactID()
Test we can set a contact ID.
public
testSetContactID() : void
testSetContactIDFailsIfInvalid()
Test we cannot set an invalid contact ID.
public
testSetContactIDFailsIfInvalid() : void
testSetContactIDLegacyWay()
Test we can set a contact ID the wrong way
public
testSetContactIDLegacyWay() : void
testSetCustomProp()
Test we can set and access custom props.
public
testSetCustomProp() : void
testSetCustomPropFails()
Test we can't set a custom prop that we know about.
public
testSetCustomPropFails() : void
testUtilsArray()
Test retrieves using CRM_Utils_Array::value still work.
public
testUtilsArray() : void