aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/db_tools_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-01-22 23:17:59 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-01-22 23:17:59 +0100
commiteb4594d8ee6a662f6e268a8d802c8a7110cd55c7 (patch)
tree09338ddbd325a63cb6ff5c89f976499af45b6175 /tests/dbal/db_tools_test.php
parent47f04d7620be293ca4f6701503ce50153d348f8a (diff)
downloadforums-eb4594d8ee6a662f6e268a8d802c8a7110cd55c7.tar
forums-eb4594d8ee6a662f6e268a8d802c8a7110cd55c7.tar.gz
forums-eb4594d8ee6a662f6e268a8d802c8a7110cd55c7.tar.bz2
forums-eb4594d8ee6a662f6e268a8d802c8a7110cd55c7.tar.xz
forums-eb4594d8ee6a662f6e268a8d802c8a7110cd55c7.zip
[ticket/13282] Add unit test for adding integer column with default null
PHPBB3-13282
Diffstat (limited to 'tests/dbal/db_tools_test.php')
-rw-r--r--tests/dbal/db_tools_test.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php
index 51f9daacfb..5832b966d8 100644
--- a/tests/dbal/db_tools_test.php
+++ b/tests/dbal/db_tools_test.php
@@ -415,4 +415,11 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
$this->tools->sql_create_unique_index('prefix_table_name', 'i_uniq_ts_id', array('c_timestamp', 'c_id'));
$this->assertTrue($this->tools->sql_unique_index_exists('prefix_table_name', 'i_uniq_ts_id'));
}
+
+ public function test_create_int_default_null()
+ {
+ $this->assertFalse($this->tools->sql_column_exists('prefix_table_name', 'c_bug_13282'));
+ $this->assertTrue($this->tools->sql_column_add('prefix_table_name', 'c_bug_13282', array('TINT:2')));
+ $this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_bug_13282'));
+ }
}