mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14264] Fix tests calling removed method
PHPBB3-14264
This commit is contained in:
parent
3c43865a15
commit
ed02365868
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue