mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13803] Refactored test
PHPBB3-13803
This commit is contained in:
@@ -18,7 +18,7 @@ class forum_description extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'forum_id',
|
||||
@@ -30,7 +30,7 @@ class forum_description extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return FORUMS_TABLE;
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ class forum_rules extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'forum_id',
|
||||
@@ -30,7 +30,7 @@ class forum_rules extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return FORUMS_TABLE;
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ class group_description extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'group_id',
|
||||
@@ -30,7 +30,7 @@ class group_description extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return GROUPS_TABLE;
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ class pm_text extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'msg_id',
|
||||
@@ -33,7 +33,7 @@ class pm_text extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return PRIVMSGS_TABLE;
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ class poll_option extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'poll_option_id',
|
||||
@@ -43,7 +43,7 @@ class poll_option extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return POLL_OPTIONS_TABLE;
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ class poll_title extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'topic_id',
|
||||
@@ -43,7 +43,7 @@ class poll_title extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return TOPICS_TABLE;
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ class post_text extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'post_id',
|
||||
@@ -33,7 +33,7 @@ class post_text extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return POSTS_TABLE;
|
||||
}
|
||||
|
@@ -50,7 +50,7 @@ class user_signature extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_columns()
|
||||
public function get_columns()
|
||||
{
|
||||
return array(
|
||||
'id' => 'user_id',
|
||||
@@ -63,7 +63,7 @@ class user_signature extends \phpbb\textreparser\row_based_plugin
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_table_name()
|
||||
public function get_table_name()
|
||||
{
|
||||
return USERS_TABLE;
|
||||
}
|
||||
|
@@ -35,14 +35,14 @@ abstract class row_based_plugin extends base
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
abstract protected function get_columns();
|
||||
abstract public function get_columns();
|
||||
|
||||
/**
|
||||
* Return the name of the table used by this plugin
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
abstract protected function get_table_name();
|
||||
abstract public function get_table_name();
|
||||
|
||||
/**
|
||||
* Add fields to given row, if applicable
|
||||
|
Reference in New Issue
Block a user