Browse Source

Use the Table constants in the tests

Yves P 10 years ago
parent
commit
ef1e73cd79

+ 3 - 3
src/Database/Schema/Table.php

@@ -82,21 +82,21 @@ class Table
     protected $_temporary = false;
 
     /**
-     * Column length when using a `tiny` text column type
+     * Column length when using a `tiny` column type
      *
      * @var int
      */
     const LENGTH_TINY = 255;
 
     /**
-     * Column length when using a `medium` text column type
+     * Column length when using a `medium` column type
      *
      * @var int
      */
     const LENGTH_MEDIUM = 16777215;
 
     /**
-     * Column length when using a `long` text column type
+     * Column length when using a `long` column type
      *
      * @var int
      */

+ 3 - 3
tests/TestCase/Database/Schema/MysqlSchemaTest.php

@@ -100,15 +100,15 @@ class MysqlSchemaTest extends TestCase
             ],
             [
                 'TINYTEXT',
-                ['type' => 'text', 'length' => 255]
+                ['type' => 'text', 'length' => Table::LENGTH_TINY]
             ],
             [
                 'MEDIUMTEXT',
-                ['type' => 'text', 'length' => 16777215]
+                ['type' => 'text', 'length' => Table::LENGTH_MEDIUM]
             ],
             [
                 'LONGTEXT',
-                ['type' => 'text', 'length' => 4294967295]
+                ['type' => 'text', 'length' => Table::LENGTH_LONG]
             ],
             [
                 'BLOB',