diff options
author | Cesar G <prototech91@gmail.com> | 2014-04-22 15:20:35 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-04-22 16:02:35 -0700 |
commit | e104c364f494b44a05e1fae4e0caf1f67de7ea63 (patch) | |
tree | aaaaac3f843a015449d56d2a2c147a23948f225e /tests/functional/jumpbox_test.php | |
parent | c2ac76e8b11c0cfb5917febe90f56216d74bc10a (diff) | |
download | forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar.gz forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar.bz2 forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar.xz forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.zip |
[ticket/11508] Add functional test for jumpbox.
PHPBB3-11508
Diffstat (limited to 'tests/functional/jumpbox_test.php')
-rw-r--r-- | tests/functional/jumpbox_test.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/functional/jumpbox_test.php b/tests/functional/jumpbox_test.php new file mode 100644 index 0000000000..b987d2b99b --- /dev/null +++ b/tests/functional/jumpbox_test.php @@ -0,0 +1,33 @@ +<?php +/** +* +* @package testing +* @copyright (c) 2014 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +/** +* @group functional +*/ +class phpbb_functional_jumpbox_test extends phpbb_functional_test_case +{ + public function test_jumpbox() + { + $this->login(); + + $crawler = self::request('GET', "viewtopic.php?t=1&sid={$this->sid}"); + $form = $crawler->filter('#quickmodform')->selectButton($this->lang('GO'))->form(array( + 'action' => 'merge_topic', + )); + + $crawler = self::submit($form); + $this->assertContains($this->lang('FORUM') . ': Your first forum', $crawler->filter('#cp-main h2')->text()); + $form = $crawler->filter('#jumpbox')->selectButton($this->lang('GO'))->form(array( + 'f' => 1, + )); + + $crawler = self::submit($form); + $this->assertContains($this->lang('FORUM') . ': Your first category', $crawler->filter('#cp-main h2')->text()); + } +} |