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:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user