Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use the Table constants in the tests
  • Loading branch information
HavokInspiration committed Apr 5, 2016
1 parent d99be7e commit ef1e73c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Database/Schema/Table.php
Expand Up @@ -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
*/
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/Database/Schema/MysqlSchemaTest.php
Expand Up @@ -100,15 +100,15 @@ public static function convertColumnProvider()
],
[
'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',
Expand Down

0 comments on commit ef1e73c

Please sign in to comment.