TestClassRecordManagerFactory
extends WP_UnitTestCase
in package
Test for RecordManagerFactory
Table of Contents
- COMBINATIONS = [\onOffice\WPlugin\Record\RecordManagerFactory::TYPE_ADDRESS => [\onOffice\WPlugin\Record\RecordManagerFactory::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadListViewAddress::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateListViewAddress::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteListViewAddress::class], \onOffice\WPlugin\Record\RecordManagerFactory::TYPE_ESTATE => [\onOffice\WPlugin\Record\RecordManagerFactory::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadListViewEstate::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateListViewEstate::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteListViewEstate::class], \onOffice\WPlugin\Record\RecordManagerFactory::TYPE_FORM => [\onOffice\WPlugin\Record\RecordManagerFactory::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadForm::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateForm::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteForm::class]]
- getCombinations() : Generator
- testCreate() : mixed
- testCreateByTypeAndAction() : mixed
- testCreateRecordManagerInsertGeneric() : mixed
- testGetGenericClassTables() : mixed
- testUnknownClass() : mixed
Constants
COMBINATIONS
public
array<string|int, mixed>
COMBINATIONS
= [\onOffice\WPlugin\Record\RecordManagerFactory::TYPE_ADDRESS => [\onOffice\WPlugin\Record\RecordManagerFactory::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadListViewAddress::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateListViewAddress::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteListViewAddress::class], \onOffice\WPlugin\Record\RecordManagerFactory::TYPE_ESTATE => [\onOffice\WPlugin\Record\RecordManagerFactory::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadListViewEstate::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateListViewEstate::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteListViewEstate::class], \onOffice\WPlugin\Record\RecordManagerFactory::TYPE_FORM => [\onOffice\WPlugin\Record\RecordManagerFactory::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadForm::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateForm::class, \onOffice\WPlugin\Record\RecordManagerFactory::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteForm::class]]
Methods
getCombinations()
public
getCombinations() : Generator
Return values
Generator —testCreate()
public
testCreate(string $type, string $action, string $expectedClass) : mixed
Parameters
- $type : string
- $action : string
- $expectedClass : string
Tags
Return values
mixed —testCreateByTypeAndAction()
public
testCreateByTypeAndAction(string $type, string $action, string $expectedClass) : mixed
Parameters
- $type : string
- $action : string
- $expectedClass : string
Tags
Return values
mixed —testCreateRecordManagerInsertGeneric()
public
testCreateRecordManagerInsertGeneric() : mixed
Tags
Return values
mixed —testGetGenericClassTables()
public
testGetGenericClassTables() : mixed
Tags
Return values
mixed —testUnknownClass()
public
testUnknownClass() : mixed