aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/db_tools_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-01-29 15:56:45 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-01 18:54:41 +0100
commit635befa00e0d9791137a2a500260b578021f60b8 (patch)
tree678ec16e13f87d79da7bea828d553e2d47315e18 /tests/dbal/db_tools_test.php
parent5bb62f5560ee913efe56c1fcb8c1a855204cc658 (diff)
downloadforums-635befa00e0d9791137a2a500260b578021f60b8.tar
forums-635befa00e0d9791137a2a500260b578021f60b8.tar.gz
forums-635befa00e0d9791137a2a500260b578021f60b8.tar.bz2
forums-635befa00e0d9791137a2a500260b578021f60b8.tar.xz
forums-635befa00e0d9791137a2a500260b578021f60b8.zip
[ticket/15055] Drop primary keys when necessary and fix test comparisons
PHPBB3-15055
Diffstat (limited to 'tests/dbal/db_tools_test.php')
-rw-r--r--tests/dbal/db_tools_test.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php
index f9243e7266..f78cebdec7 100644
--- a/tests/dbal/db_tools_test.php
+++ b/tests/dbal/db_tools_test.php
@@ -203,8 +203,15 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
public function test_list_columns()
{
+ $config = $this->get_database_config();
+ $table_columns = $this->table_data['COLUMNS'];
+
+ if (strpos($config['dbms'], 'mssql') !== false)
+ {
+ ksort($table_columns);
+ }
$this->assertEquals(
- array_keys($this->table_data['COLUMNS']),
+ array_keys($table_columns),
array_values($this->tools->sql_list_columns('prefix_table_name'))
);
}