diff options
author | Nils Adermann <naderman@naderman.de> | 2014-05-02 16:40:01 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2014-05-02 16:40:01 +0200 |
commit | e65c51e3cd6f8ecd0a811b2671a94fef3fcf9d83 (patch) | |
tree | 43e2c07a830283973bf4246ca8ae43232fb29f5d /tests/functional | |
parent | a9ae1f83c7caa461ca2a13b9ef41f1b3140b7d22 (diff) | |
parent | e9b00071dd1e7ae40a04e26d3f337d70bafbcf93 (diff) | |
download | forums-e65c51e3cd6f8ecd0a811b2671a94fef3fcf9d83.tar forums-e65c51e3cd6f8ecd0a811b2671a94fef3fcf9d83.tar.gz forums-e65c51e3cd6f8ecd0a811b2671a94fef3fcf9d83.tar.bz2 forums-e65c51e3cd6f8ecd0a811b2671a94fef3fcf9d83.tar.xz forums-e65c51e3cd6f8ecd0a811b2671a94fef3fcf9d83.zip |
Merge remote-tracking branch 'github-prototech/ticket/11508' into develop-ascraeus
* github-prototech/ticket/11508:
[ticket/11508] Fix build_url test.
[ticket/11508] Add functional test for jumpbox.
[ticket/11508] Use $phpbb_path_helper.
[ticket/11508] Allow equal sign in parameter value.
[ticket/11508] Remove unnecessary implode.
[ticket/11508] Remove unnecessary isset check.
[ticket/11508] Fix build_url test.
[ticket/11508] Curly brace should be on its own line...
[ticket/11508] The question mark is expected even if there are no parameters.
[ticket/11508] Add tests.
[ticket/11508] Do not add the '?' unless there are parameters.
[ticket/11508] Change separator parameter to a simple true|false $is_amp.
[ticket/11508] Move helper functions to path_helper class.
[ticket/11508] Move the stripping param code to separate function as well.
[ticket/11508] Build the jumpbox hidden fields using the _form action_
[ticket/11508] Split parts of build_url() into reusable functions.
Diffstat (limited to 'tests/functional')
-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()); + } +} |