aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-11-04 17:31:18 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-11-04 17:31:18 +0100
commit85837d48b20c63f86050d0125942b25928deb1a5 (patch)
treea27622ce5390a17f1bf98f4c9b4309e801de4e0b /tests
parent7df08fe12ef25bf3e5feba9aeb0cdface6411227 (diff)
downloadforums-85837d48b20c63f86050d0125942b25928deb1a5.tar
forums-85837d48b20c63f86050d0125942b25928deb1a5.tar.gz
forums-85837d48b20c63f86050d0125942b25928deb1a5.tar.bz2
forums-85837d48b20c63f86050d0125942b25928deb1a5.tar.xz
forums-85837d48b20c63f86050d0125942b25928deb1a5.zip
[ticket/12559] Use short array syntax
PHPBB3-12559
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/subforum_test.php24
1 files changed, 12 insertions, 12 deletions
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);
}