[split/functional_test] Split poll tests into seperate functional test file

This commit is contained in:
Marc Alexander
2013-11-17 23:48:54 +01:00
parent 29d81e1f0c
commit 5609bf131b
2 changed files with 36 additions and 14 deletions

View File

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

View File

@@ -0,0 +1,36 @@
<?php
/**
*
* @package testing
* @copyright (c) 2013 Board3 Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* @group functional
*/
class phpbb_functional_portal_vote_poll_test extends \board3\portal\tests\testframework\functional_test_case
{
public function setUp()
{
parent::setUp();
$this->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');
}
}
}