aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_reparser
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-03 02:05:20 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-30 17:26:00 +0200
commitd42b2fe795de913894c0cc9f1df084f8ef0c58f9 (patch)
tree59acc7eeee9bce5aceb3d87f89012b22e07b0252 /tests/text_reparser
parent6ab524f8dcf8f918159ba584a659dd88dc9ca3b9 (diff)
downloadforums-d42b2fe795de913894c0cc9f1df084f8ef0c58f9.tar
forums-d42b2fe795de913894c0cc9f1df084f8ef0c58f9.tar.gz
forums-d42b2fe795de913894c0cc9f1df084f8ef0c58f9.tar.bz2
forums-d42b2fe795de913894c0cc9f1df084f8ef0c58f9.tar.xz
forums-d42b2fe795de913894c0cc9f1df084f8ef0c58f9.zip
[ticket/13803] Sort test rows in SQL to match the expected result
PHPBB3-13803
Diffstat (limited to 'tests/text_reparser')
-rw-r--r--tests/text_reparser/test_row_based_plugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/text_reparser/test_row_based_plugin.php b/tests/text_reparser/test_row_based_plugin.php
index 405341e2fc..0258745bf2 100644
--- a/tests/text_reparser/test_row_based_plugin.php
+++ b/tests/text_reparser/test_row_based_plugin.php
@@ -47,7 +47,8 @@ abstract class phpbb_textreparser_test_row_based_plugin extends phpbb_database_t
$columns = $reparser->get_columns();
$sql = 'SELECT ' . $columns['id'] . ' AS id, ' . $columns['text'] . ' AS text
FROM ' . $reparser->get_table_name() . '
- WHERE ' . $this->db->sql_in_set($columns['id'], $ids);
+ WHERE ' . $this->db->sql_in_set($columns['id'], $ids) . '
+ ORDER BY id';
$result = $this->db->sql_query($sql);
$rows = $this->db->sql_fetchrowset($result);
$this->db->sql_freeresult($result);