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'); + } + } +}