aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_reparser/plugins/test_row_based_plugin.php
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2015-11-05 20:52:37 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2015-11-05 20:52:37 +0100
commited02365868e832b7bb891386e07cb4a3c7644072 (patch)
tree901b92c67a757d78aa791c73dccf2be4f73108b8 /tests/text_reparser/plugins/test_row_based_plugin.php
parent3c43865a15f59f119e41a277d9053c4689b2652e (diff)
downloadforums-ed02365868e832b7bb891386e07cb4a3c7644072.tar
forums-ed02365868e832b7bb891386e07cb4a3c7644072.tar.gz
forums-ed02365868e832b7bb891386e07cb4a3c7644072.tar.bz2
forums-ed02365868e832b7bb891386e07cb4a3c7644072.tar.xz
forums-ed02365868e832b7bb891386e07cb4a3c7644072.zip
[ticket/14264] Fix tests calling removed method
PHPBB3-14264
Diffstat (limited to 'tests/text_reparser/plugins/test_row_based_plugin.php')
-rw-r--r--tests/text_reparser/plugins/test_row_based_plugin.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/text_reparser/plugins/test_row_based_plugin.php b/tests/text_reparser/plugins/test_row_based_plugin.php
index bbae44c8e0..e8218dfdd6 100644
--- a/tests/text_reparser/plugins/test_row_based_plugin.php
+++ b/tests/text_reparser/plugins/test_row_based_plugin.php
@@ -24,8 +24,13 @@ abstract class phpbb_textreparser_test_row_based_plugin extends phpbb_database_t
{
$reparser = $this->get_reparser();
$columns = $reparser->get_columns();
+
+ $reflection_reparser = new ReflectionClass(get_class($reparser));
+ $table_property = $reflection_reparser->getProperty('table');
+ $table_property->setAccessible(true);
+
$sql = 'SELECT ' . $columns['id'] . ' AS id, ' . $columns['text'] . ' AS text
- FROM ' . $reparser->get_table_name() . '
+ FROM ' . $table_property->getValue($reparser) . '
WHERE ' . $this->db->sql_in_set($columns['id'], $ids) . '
ORDER BY id';
$result = $this->db->sql_query($sql);