From 5609bf131b78e43aaea7ef3d01635c58edc9222e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 17 Nov 2013 23:48:54 +0100 Subject: [PATCH] [split/functional_test] Split poll tests into seperate functional test file --- tests/functional/portal_no_error_test.php | 14 --------- tests/functional/portal_vote_poll_test.php | 36 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 tests/functional/portal_vote_poll_test.php diff --git a/tests/functional/portal_no_error_test.php b/tests/functional/portal_no_error_test.php index c163e09b..d527206b 100644 --- a/tests/functional/portal_no_error_test.php +++ b/tests/functional/portal_no_error_test.php @@ -24,18 +24,4 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra { $crawler = self::request('GET', 'app.php?portal'); } - - public function test_with_poll() - { - // Create topic with poll - $data = $this->create_topic(2, 'Portal-poll', 'This is a poll for the portal', array( - 'poll_title' => 'Is this a poll?', - 'poll_option_text' => "Yes\nNo\nMaybe", - )); - - if (isset($data)) - { - $crawler = self::request('GET', 'app.php?portal'); - } - } } diff --git a/tests/functional/portal_vote_poll_test.php b/tests/functional/portal_vote_poll_test.php new file mode 100644 index 00000000..a2aa9401 --- /dev/null +++ b/tests/functional/portal_vote_poll_test.php @@ -0,0 +1,36 @@ +login(); + $this->admin_login(); + $this->enable_board3_portal_ext(); + } + + public function test_with_poll() + { + // Create topic with poll + $data = $this->create_topic(2, 'Portal-poll', 'This is a poll for the portal', array( + 'poll_title' => 'Is this a poll?', + 'poll_option_text' => "Yes\nNo\nMaybe", + )); + + if (isset($data)) + { + $crawler = self::request('GET', 'app.php?portal'); + } + } +}