mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-25 10:05:21 +02:00
[ticket/14264] Fix tests calling removed method
PHPBB3-14264
This commit is contained in:
parent
3c43865a15
commit
ed02365868
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user