diff --git a/tests/Entity/PersistentAttributeTest.php b/tests/Entity/PersistentAttributeTest.php index e275b1d..3a8e839 100644 --- a/tests/Entity/PersistentAttributeTest.php +++ b/tests/Entity/PersistentAttributeTest.php @@ -48,7 +48,7 @@ public function testToSql() { $this->assertEquals('one int(11) NOT NULL DEFAULT "11"', $attribute->toSQL()); $attribute = new PersistentAttribute('one', [T::Text, true, 'auto_increment']); - $this->assertEquals('one text NULL DEFAULT NULL auto_increment', $attribute->toSQL()); + $this->assertEquals('one mediumtext NULL DEFAULT NULL auto_increment', $attribute->toSQL()); $attribute = new PersistentAttribute('one', [T::Enumeration, false, 'MyEnum']); $this->assertEquals('one enum(\'option1\',\'option2\',\'option3\') NOT NULL', $attribute->toSQL()); diff --git a/tests/Persistence/QueryBuilderTest.php b/tests/Persistence/QueryBuilderTest.php index 92e50db..0a2cd71 100644 --- a/tests/Persistence/QueryBuilderTest.php +++ b/tests/Persistence/QueryBuilderTest.php @@ -110,12 +110,12 @@ public function testBuildCreateTable() { $attribute_three = new PersistentAttribute('three', [T::Text, true]); $this->assertEquals( - "CREATE TABLE one (two int(11) NOT NULL, three text NULL DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 auto_increment=1;", + "CREATE TABLE one (two int(11) NOT NULL, three mediumtext NULL DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 auto_increment=1;", $query_builder->buildCreateTable('one', [$attribute_two, $attribute_three], []) ); $this->assertEquals( - "CREATE TABLE one (two int(11) NOT NULL, three text NULL DEFAULT NULL, PRIMARY KEY (two)) ENGINE=InnoDB DEFAULT CHARSET=utf8 auto_increment=1;", + "CREATE TABLE one (two int(11) NOT NULL, three mediumtext NULL DEFAULT NULL, PRIMARY KEY (two)) ENGINE=InnoDB DEFAULT CHARSET=utf8 auto_increment=1;", $query_builder->buildCreateTable('one', [$attribute_two, $attribute_three], ['two']) );