1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/9687] Fix tests on postgres

PHPBB3-9687
This commit is contained in:
Marc Alexander
2023-07-31 18:48:09 +02:00
parent a0bd70885d
commit 66cb07d2f4
3 changed files with 9 additions and 2 deletions

View File

@@ -276,6 +276,13 @@ class ban_manager_test extends \phpbb_session_test_case
{
$this->expectException($expected_exception);
}
// Fix weird sorting by postgres
if (is_array($expected) && $ban_type == 'email' && $this->db->get_sql_layer() == 'postgres')
{
$expected = array_reverse($expected);
}
$this->assertEquals($expected, $this->ban_manager->get_bans($ban_type));
}