1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 02:36:38 +02:00

[ticket/8240] Add ability to get a list of tables to db_tools.

PHPBB3-8240
This commit is contained in:
Andreas Fischer
2011-10-14 15:25:15 +02:00
parent 1657339e6d
commit 234edf674c
3 changed files with 75 additions and 49 deletions

View File

@@ -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'));