mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-20 20:38:45 +00:00

- File: '... /tests/unit/phpunit/include/MVC/SugarApplicationTest.php' - Replaced 1 occurrence(s) of 'new User()' - File: '... /tests/unit/phpunit/include/SugarEmailAddress/SugarEmailAddressTest.php' - Replaced 6 occurrence(s) of 'new Contact()' - Replaced 1 occurrence(s) of 'new User()' - File: '... /tests/unit/phpunit/include/SugarObjects/templates/PersonTest.php' - Replaced 1 occurrence(s) of 'new Contact()' - File: '... /tests/unit/phpunit/include/SugarFolders/SugarFolderTest.php' - Replaced 1 occurrence(s) of 'new Email()' - Replaced 17 occurrence(s) of 'new User()' - Replaced 1 occurrence(s) of 'new InboundEmail()' - File: '... /tests/unit/phpunit/include/TimeDateTest.php' - Replaced 6 occurrence(s) of 'new User()' - File: '... /tests/unit/phpunit/include/utils/activityUtilsTest.php' - Replaced 1 occurrence(s) of 'new Meeting()' - Replaced 2 occurrence(s) of 'new User()' - File: '... /tests/unit/phpunit/include/utils/LogicHookTest.php' - Replaced 2 occurrence(s) of 'new Account()' - Replaced 1 occurrence(s) of 'new User()' - File: '... /tests/unit/phpunit/include/utils/securityUtilsTest.php' - Replaced 1 occurrence(s) of 'new User()' - File: '... /tests/unit/phpunit/service/v4/SugarWebServiceUtilv4Test.php' - Replaced 1 occurrence(s) of 'new aCase()' - File: '... /tests/unit/phpunit/modules/Documents/DocumentTest.php' - Replaced 1 occurrence(s) of 'new User()' - Replaced 11 occurrence(s) of 'new Document()'
23 lines
814 B
PHP
23 lines
814 B
PHP
<?php
|
|
|
|
namespace SuiteCRM;
|
|
|
|
use aCase;
|
|
use SugarWebServiceUtilv4_1;
|
|
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
|
|
|
|
class SugarWebServiceUtilv4Test extends SuitePHPUnitFrameworkTestCase
|
|
{
|
|
public function testGetFieldListParentenum()
|
|
{
|
|
require_once('service/v4_1/SugarWebServiceUtilv4_1.php');
|
|
$helperObject = new SugarWebServiceUtilv4_1();
|
|
require_once('modules/Cases/Case.php');
|
|
$seed = \BeanFactory::newBean('Cases');
|
|
$module_name = 'Cases';
|
|
$fields = array('status', 'state', 'name');
|
|
$return = $helperObject->get_return_module_fields($seed, $module_name, $fields);
|
|
$this->assertEquals($return['module_fields']['status']['parentenum'], 'state');
|
|
$this->assertTrue(!isset($return['module_fields']['name']['parentenum']));
|
|
}
|
|
}
|