From: Mattias Michaux Date: Fri, 29 Apr 2016 05:50:35 +0000 (+0200) Subject: Added tests for . 64 character limit. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=202d3853abb83ca0b02871d8da8525f0495a322e;p=civicrm-core.git Added tests for
. 64 character limit. --- diff --git a/tests/phpunit/CRM/Utils/TypeTest.php b/tests/phpunit/CRM/Utils/TypeTest.php index b8371cdd05..4e51944f31 100644 --- a/tests/phpunit/CRM/Utils/TypeTest.php +++ b/tests/phpunit/CRM/Utils/TypeTest.php @@ -42,6 +42,11 @@ class CRM_Utils_TypeTest extends CiviUnitTestCase { array('table.civicrm_column_name.toomanydots', 'MysqlColumnName', NULL), array('invalid-column-name', 'MysqlColumnName', NULL), array('column_name, sleep(5)', 'MysqlColumnName', NULL), + array(str_repeat('a', 64), 'MysqlColumnName', str_repeat('a', 64)), + array(str_repeat('a', 65), 'MysqlColumnName', NULL), + array(str_repeat('a', 64) . '.' . str_repeat('a', 64), 'MysqlColumnName', str_repeat('a', 64) . '.' . str_repeat('a', 64)), + array(str_repeat('a', 64) . '.' . str_repeat('a', 65), 'MysqlColumnName', NULL), + array(str_repeat('a', 65) . '.' . str_repeat('a', 64), 'MysqlColumnName', NULL), array('asc', 'MysqlOrderByDirection', 'asc'), array('DESC', 'MysqlOrderByDirection', 'desc'), array('DESCc', 'MysqlOrderByDirection', NULL),