1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[ticket/8610] Do not use requests to submit posts except in posting_test.php

Moving my functional test functions from posting_helpers.php to
posting_test.php since it is a bit nicer and more reusable if
posting_test.php is to be expanded in the future.

PHPBB3-8610
This commit is contained in:
Nathan Guse
2012-12-15 16:22:54 -06:00
parent d739745ea4
commit 175b6deb6d
3 changed files with 108 additions and 137 deletions

View File

@@ -299,7 +299,7 @@ class phpbb_functional_test_case extends phpbb_test_case
}
}
public function add_lang($lang_file)
protected function add_lang($lang_file)
{
if (is_array($lang_file))
{
@@ -321,7 +321,7 @@ class phpbb_functional_test_case extends phpbb_test_case
$this->lang = array_merge($this->lang, $lang);
}
public function lang()
protected function lang()
{
$args = func_get_args();
$key = $args[0];
@@ -350,14 +350,4 @@ class phpbb_functional_test_case extends phpbb_test_case
$content = $this->client->getResponse()->getContent();
$this->assertNotContains('Fatal error:', $content);
}
public function get_sid()
{
return $this->sid;
}
public function get_client()
{
return $this->client;
}
}