1
0
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:
JoshyPHP
2015-05-01 20:05:15 +02:00
parent b5911281ae
commit 459f1d4c1f
12 changed files with 116 additions and 91 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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