diff options
-rw-r--r-- | phpBB/phpbb/db/migration/data/v330/forums_legend_limit.php | 28 | ||||
-rw-r--r-- | tests/functional/subforum_test.php | 24 |
2 files changed, 26 insertions, 26 deletions
diff --git a/phpBB/phpbb/db/migration/data/v330/forums_legend_limit.php b/phpBB/phpbb/db/migration/data/v330/forums_legend_limit.php index 45b6547ede..c5a4beef38 100644 --- a/phpBB/phpbb/db/migration/data/v330/forums_legend_limit.php +++ b/phpBB/phpbb/db/migration/data/v330/forums_legend_limit.php @@ -22,28 +22,28 @@ class forums_legend_limit extends \phpbb\db\migration\migration static public function depends_on() { - return array('\phpbb\db\migration\data\v330\v330b1'); + return ['\phpbb\db\migration\data\v330\v330b1']; } public function update_schema() { - return array( - 'add_columns' => array( - $this->table_prefix . 'forums' => array( - 'display_subforum_limit' => array('BOOL', 0, 'after' => 'display_subforum_list'), - ), - ), - ); + return [ + 'add_columns' => [ + $this->table_prefix . 'forums' => [ + 'display_subforum_limit' => ['BOOL', 0, 'after' => 'display_subforum_list'], + ], + ], + ]; } public function revert_schema() { - return array( - 'drop_columns' => array( - $this->table_prefix . 'forums' => array( + return [ + 'drop_columns' => [ + $this->table_prefix . 'forums' => [ 'display_subforum_limit', - ), - ), - ); + ], + ], + ]; } } diff --git a/tests/functional/subforum_test.php b/tests/functional/subforum_test.php index 6686e347c5..6ce4f53c20 100644 --- a/tests/functional/subforum_test.php +++ b/tests/functional/subforum_test.php @@ -23,38 +23,38 @@ class phpbb_functional_subforum_test extends phpbb_functional_test_case $forum_name = 'Subforum Test #1'; $crawler = self::request('GET', "adm/index.php?i=acp_forums&mode=manage&sid={$this->sid}"); - $form = $crawler->selectButton('addforum')->form(array( + $form = $crawler->selectButton('addforum')->form([ 'forum_name' => $forum_name, - )); + ]); $crawler = self::submit($form); - $form = $crawler->selectButton('update')->form(array( + $form = $crawler->selectButton('update')->form([ 'forum_perm_from' => 2, - )); + ]); self::submit($form); $forum_id = self::get_forum_id($forum_name); // 'Feeds #1.1' is a sub-forum of 'Feeds #1' $forum_name = 'Subforum Test #1.1'; $crawler = self::request('GET', "adm/index.php?i=acp_forums&sid={$this->sid}&icat=6&mode=manage&parent_id={$forum_id}"); - $form = $crawler->selectButton('addforum')->form(array( + $form = $crawler->selectButton('addforum')->form([ 'forum_name' => $forum_name, - )); + ]); $crawler = self::submit($form); - $form = $crawler->selectButton('update')->form(array( + $form = $crawler->selectButton('update')->form([ 'forum_perm_from' => 2, - )); + ]); self::submit($form); $forum_id = self::get_forum_id('Subforum Test #1.1'); // 'Feeds #news' will be used for feed.php?mode=news $crawler = self::request('GET', "adm/index.php?i=acp_forums&sid={$this->sid}&icat=6&mode=manage&parent_id={$forum_id}"); - $form = $crawler->selectButton('addforum')->form(array( + $form = $crawler->selectButton('addforum')->form([ 'forum_name' => 'Subforum Test #1.1.1', - )); + ]); $crawler = self::submit($form); - $form = $crawler->selectButton('update')->form(array( + $form = $crawler->selectButton('update')->form([ 'forum_perm_from' => 2, - )); + ]); self::submit($form); } |