aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/db_tools_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-23 17:32:57 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-23 17:32:57 +0100
commitfc91616fadc19aaf6423c541c748c3fb3ec70760 (patch)
treeeecaf659aeb511753460f1d5300b6ca9829b45b6 /tests/dbal/db_tools_test.php
parentbcf13551bee63417cce1cf030c016eeb8855b751 (diff)
parent9cdbb69f9e50f665caad54fc93f64143cb7d8fc8 (diff)
downloadforums-fc91616fadc19aaf6423c541c748c3fb3ec70760.tar
forums-fc91616fadc19aaf6423c541c748c3fb3ec70760.tar.gz
forums-fc91616fadc19aaf6423c541c748c3fb3ec70760.tar.bz2
forums-fc91616fadc19aaf6423c541c748c3fb3ec70760.tar.xz
forums-fc91616fadc19aaf6423c541c748c3fb3ec70760.zip
Merge branch 'develop-ascraeus' into develop
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 7d01376062..c09b34f55c 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'));
+ }
}