TestClassRecordStructure
extends WP_UnitTestCase
in package
Tags
Table of Contents
- $_expectationsEmpty : array<string|int, mixed>
- $_expectationsNull : array<string|int, mixed>
- testGetEmptyValue() : mixed
- testGetFieldByValue() : mixed
- testIsNullAllowed() : mixed
Properties
$_expectationsEmpty
private
static array<string|int, mixed>
$_expectationsEmpty
= array(\onOffice\WPlugin\Record\RecordManager::TABLENAME_LIST_VIEW => array('name' => '', 'filterId' => 0, 'sortby' => 'ASC', 'is_reference' => 0, 'show_status' => 0, 'template' => '', 'expose' => '', 'recordsPerPage' => 5, 'list_type' => ''), \onOffice\WPlugin\Record\RecordManager::TABLENAME_FIELDCONFIG => array('order' => 0, 'fieldname' => ''), \onOffice\WPlugin\Record\RecordManager::TABLENAME_LISTVIEW_CONTACTPERSON => array('order' => 0, 'fieldname' => ''), \onOffice\WPlugin\Record\RecordManager::TABLENAME_PICTURETYPES => array('picturetype' => ''), \onOffice\WPlugin\Record\RecordManager::TABLENAME_SORTBYUSERVALUES => array('sortbyuservalue' => ''), \onOffice\WPlugin\Record\RecordManager::TABLENAME_LIST_VIEW_ADDRESS => array('name' => null, 'filterId' => null, 'sortby' => null, 'sortorder' => 'ASC', 'template' => null, 'recordsPerPage' => 10, 'showPhoto' => 0), \onOffice\WPlugin\Record\RecordManager::TABLENAME_FIELDCONFIG_ADDRESS => array('order' => 0, 'fieldname' => ''), \onOffice\WPlugin\Record\RecordManager::TABLENAME_FORMS => array('name' => null, 'form_type' => 'contact', 'template' => null, 'recipient' => null, 'subject' => null, 'createaddress' => 0, 'limitresults' => null, 'checkduplicates' => 0, 'pages' => 0))
$_expectationsNull
private
static array<string|int, mixed>
$_expectationsNull
= array(\onOffice\WPlugin\Record\RecordManager::TABLENAME_LIST_VIEW => array('name' => false, 'filterId' => true, 'sortby' => false, 'is_reference' => false, 'show_status' => false, 'template' => false, 'expose' => true, 'recordsPerPage' => false, 'list_type' => false), \onOffice\WPlugin\Record\RecordManager::TABLENAME_FIELDCONFIG => array('order' => false, 'fieldname' => false), \onOffice\WPlugin\Record\RecordManager::TABLENAME_LISTVIEW_CONTACTPERSON => array('order' => false, 'fieldname' => false), \onOffice\WPlugin\Record\RecordManager::TABLENAME_PICTURETYPES => array('picturetype' => false), \onOffice\WPlugin\Record\RecordManager::TABLENAME_LIST_VIEW_ADDRESS => array('name' => false, 'filterId' => true, 'sortby' => true, 'sortorder' => false, 'template' => true, 'recordsPerPage' => false, 'showPhoto' => false), \onOffice\WPlugin\Record\RecordManager::TABLENAME_FIELDCONFIG_ADDRESS => array('order' => false, 'fieldname' => false), \onOffice\WPlugin\Record\RecordManager::TABLENAME_FORMS => array('name' => false, 'form_type' => false, 'template' => false, 'recipient' => true, 'subject' => true, 'createaddress' => false, 'limitresults' => true, 'checkduplicates' => false, 'pages' => false))
Methods
testGetEmptyValue()
public
testGetEmptyValue() : mixed
Tags
Return values
mixed —testGetFieldByValue()
public
testGetFieldByValue() : mixed
Tags
Return values
mixed —testIsNullAllowed()
public
testIsNullAllowed() : mixed