Use new testing framework, weeeeh
This commit is contained in:
@@ -15,9 +15,9 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function acp_pages_data()
|
||||
@@ -34,7 +34,7 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
|
||||
*/
|
||||
public function test_acp_pages($mode)
|
||||
{
|
||||
$crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=' . $mode . '&sid=' . $this->sid);
|
||||
self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=' . $mode . '&sid=' . $this->sid);
|
||||
}
|
||||
|
||||
public function test_move_first_module_up()
|
||||
@@ -44,7 +44,7 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
|
||||
preg_match('/module_id=(?:([0-9]{1,3}))/', $module_link, $output);
|
||||
$this->assertNotEmpty($output[1]);
|
||||
$module_id = $output[1];
|
||||
$crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_up&sid=' . $this->sid);
|
||||
self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_up&sid=' . $this->sid);
|
||||
}
|
||||
|
||||
public function test_move_last_module_down()
|
||||
@@ -54,7 +54,7 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
|
||||
preg_match('/module_id=(?:([0-9]{1,3}))/', $module_link, $output);
|
||||
$this->assertNotEmpty($output[1]);
|
||||
$module_id = $output[1];
|
||||
$crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_down&sid=' . $this->sid);
|
||||
self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_down&sid=' . $this->sid);
|
||||
}
|
||||
|
||||
public function test_delete_module()
|
||||
@@ -73,6 +73,6 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
|
||||
$crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&add[center]=true&sid=' . $this->sid);
|
||||
$form = $crawler->selectButton('submit')->form();
|
||||
$form->setValues(array('module_classname' => $module_name));
|
||||
$crawler = self::submit($form);
|
||||
self::submit($form);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function test_with_announce()
|
||||
@@ -30,7 +30,7 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
||||
if (isset($data))
|
||||
{
|
||||
// no errors should appear on portal
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
||||
if (isset($data))
|
||||
{
|
||||
// no errors should appear on portal
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,6 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
||||
public function test_after_announce()
|
||||
{
|
||||
$this->logout();
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function test_setup_birthday()
|
||||
@@ -26,7 +26,7 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
|
||||
$uid = $this->create_user('portal_birthday_user');
|
||||
if (!$uid)
|
||||
{
|
||||
$this->markIncomplete('Unable to create portal_user');
|
||||
$this->markTestIncomplete('Unable to create portal_user');
|
||||
}
|
||||
$this->login('portal_birthday_user');
|
||||
$crawler = self::request('GET', 'ucp.php?i=ucp_profile&mode=profile_info&sid=' . $this->sid);
|
||||
@@ -36,7 +36,7 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
|
||||
'bday_month' => date('m', time() + 86400*2),
|
||||
'bday_year' => date('Y', time() + 86400*2),
|
||||
));
|
||||
$crawler = self::submit($form);
|
||||
self::submit($form);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,13 +15,13 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function test_vanilla_board()
|
||||
{
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ class phpbb_functional_portal_redirect_test extends \board3\portal\tests\testfra
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function test_redirect()
|
||||
|
||||
@@ -15,9 +15,9 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function test_vanilla_board()
|
||||
@@ -26,10 +26,10 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
$uid = $this->create_user('portal_user');
|
||||
if (!$uid)
|
||||
{
|
||||
$this->markIncomplete('Unable to create portal_user');
|
||||
$this->markTestIncomplete('Unable to create portal_user');
|
||||
}
|
||||
$this->login('portal_user');
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
|
||||
public function test_with_announce()
|
||||
@@ -42,7 +42,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
if (isset($data))
|
||||
{
|
||||
// no errors should appear on portal
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
if (isset($data))
|
||||
{
|
||||
// no errors should appear on portal
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
public function test_after_announce()
|
||||
{
|
||||
$this->logout();
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
|
||||
public function test_with_poll()
|
||||
@@ -82,10 +82,10 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
$form = $crawler->selectButton('Submit vote')->form();
|
||||
$form->setValues(array('vote_id' => array(1)));
|
||||
$crawler = self::submit($form);
|
||||
self::submit($form);
|
||||
|
||||
// no errors should appear on portal
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
public function test_after_poll()
|
||||
{
|
||||
$this->logout();
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
self::request('GET', 'app.php/portal');
|
||||
}
|
||||
|
||||
public function test_whois_online_legend()
|
||||
|
||||
@@ -15,9 +15,9 @@ class phpbb_functional_portal_vote_poll_test extends \board3\portal\tests\testfr
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function test_with_poll()
|
||||
|
||||
Reference in New Issue
Block a user