diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-10-14 16:29:33 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-10-14 16:35:14 +0200 |
commit | 4effe8fb8bdf493e539b7bf883fbf1e290bf7ab2 (patch) | |
tree | 29b09cdbe0ad1558bc14debcf07ea68b340a3408 /tests/dbal/db_tools_test.php | |
parent | 234edf674cd1c2ed3611f69cd925c4d5e29fdc20 (diff) | |
download | forums-4effe8fb8bdf493e539b7bf883fbf1e290bf7ab2.tar forums-4effe8fb8bdf493e539b7bf883fbf1e290bf7ab2.tar.gz forums-4effe8fb8bdf493e539b7bf883fbf1e290bf7ab2.tar.bz2 forums-4effe8fb8bdf493e539b7bf883fbf1e290bf7ab2.tar.xz forums-4effe8fb8bdf493e539b7bf883fbf1e290bf7ab2.zip |
[ticket/8240] Add ability to get a list of columns of a tables to db_tools.
PHPBB3-8240
Diffstat (limited to 'tests/dbal/db_tools_test.php')
-rw-r--r-- | tests/dbal/db_tools_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php index 130fc451f9..b34b471e5c 100644 --- a/tests/dbal/db_tools_test.php +++ b/tests/dbal/db_tools_test.php @@ -234,6 +234,14 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case $this->assertEquals($row2, $row_actual); } + public function test_list_columns() + { + $this->assertEquals( + array_keys($this->table_data['COLUMNS']), + array_values($this->tools->sql_list_columns('prefix_table_name')) + ); + } + public function test_column_exists() { $this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_id')); |