2 /*********************************************************************************
3 * By installing or using this file, you are confirming on behalf of the entity
4 * subscribed to the SugarCRM Inc. product ("Company") that Company is bound by
5 * the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is viewable at:
6 * http://www.sugarcrm.com/master-subscription-agreement
8 * If Company is not bound by the MSA, then by installing or using this file
9 * you are agreeing unconditionally that Company will be bound by the MSA and
10 * certifying that you have authority to bind Company accordingly.
12 * Copyright (C) 2004-2013 SugarCRM Inc. All rights reserved.
13 ********************************************************************************/
15 require_once 'include/database/DBManagerFactory.php';
17 class Bug61885Test extends Sugar_PHPUnit_Framework_TestCase
20 * DataProvider function for test
24 public static function provideVarDefs()
55 'name' => 'idx_ACCNT_id_del',
57 'fields' => array('ID', 'deleted'),
60 'name' => 'idx_accnt_id_del',
62 'fields' => array('id', 'deleted'),
68 'name' => 'idx_ACCNT_id_del',
70 'fields' => array('ID', 'DELETED'),
73 'name' => 'idx_accnt_id_del',
75 'fields' => array('id', 'deleted'),
81 'name' => 'idx_ACCNT_id_del',
83 'fields' => array('IDxxx', 'DELETED'),
86 'name' => 'idx_accnt_id_del',
88 'fields' => array('id', 'deleted'),
94 'name' => 'idx_ACCNT_id_del',
96 'fields' => array('IDxxx', 'deletedxxx'),
99 'name' => 'idx_accnt_id_del',
101 'fields' => array('id', 'deleted'),
107 'name' => 'idx_accnt_id_del',
109 'fields' => array('id', 'deleted'),
112 'name' => 'idx_ACCNT_id_del',
114 'fields' => array('ID', 'DELETED'),
124 * @dataProvider provideVarDefs
127 public function testCompareVarDefsNotCaseSensitive($fieldDef1, $fieldDef2, $expectedResult)
129 $DBManager = DBManagerFactory::getInstance();
133 $this->assertTrue($DBManager->compareVarDefs($fieldDef1, $fieldDef2));
137 $this->assertFalse($DBManager->compareVarDefs($fieldDef1, $fieldDef2));