diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-10-14 15:25:15 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-10-14 16:35:07 +0200 |
commit | 234edf674cd1c2ed3611f69cd925c4d5e29fdc20 (patch) | |
tree | c2ae488bed2f2503b817c1b7dfe9378a08a3c350 /tests | |
parent | 1657339e6d0b9a04463ce63fefa6332cab8aad14 (diff) | |
download | forums-234edf674cd1c2ed3611f69cd925c4d5e29fdc20.tar forums-234edf674cd1c2ed3611f69cd925c4d5e29fdc20.tar.gz forums-234edf674cd1c2ed3611f69cd925c4d5e29fdc20.tar.bz2 forums-234edf674cd1c2ed3611f69cd925c4d5e29fdc20.tar.xz forums-234edf674cd1c2ed3611f69cd925c4d5e29fdc20.zip |
[ticket/8240] Add ability to get a list of tables to db_tools.
PHPBB3-8240
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbal/db_tools_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php index 927bce4597..130fc451f9 100644 --- a/tests/dbal/db_tools_test.php +++ b/tests/dbal/db_tools_test.php @@ -258,6 +258,13 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case $this->assertFalse($this->tools->sql_column_exists('prefix_table_name', 'c_id')); } + public function test_list_tables() + { + $tables = $this->tools->sql_list_tables(); + $this->assertTrue(isset($tables['prefix_table_name'])); + $this->assertFalse(isset($tables['prefix_does_not_exist'])); + } + public function test_table_exists() { $this->assertTrue($this->tools->sql_table_exists('prefix_table_name')); |