From 202d3853abb83ca0b02871d8da8525f0495a322e Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Fri, 29 Apr 2016 07:50:35 +0200 Subject: [PATCH] Added tests for . 64 character limit. --- tests/phpunit/CRM/Utils/TypeTest.php | 5 +++++ 1 file changed, 5 insertions(+) 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), -- 2.25.1