mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/functional-tests] Introduce bootstrap method
PHPBB3-10414
This commit is contained in:
parent
66b0cfe221
commit
d4189013ab
1 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,13 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
return $this->client->request($method, $this->root_url . $path);
|
return $this->client->request($method, $this->root_url . $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// bootstrap, called after board is set up
|
||||||
|
// once per test case class
|
||||||
|
// test cases can override this
|
||||||
|
protected function bootstrap()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public function __construct($name = NULL, array $data = array(), $dataName = '')
|
public function __construct($name = NULL, array $data = array(), $dataName = '')
|
||||||
{
|
{
|
||||||
parent::__construct($name, $data, $dataName);
|
parent::__construct($name, $data, $dataName);
|
||||||
|
@ -45,6 +52,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
if (!static::$already_installed)
|
if (!static::$already_installed)
|
||||||
{
|
{
|
||||||
$this->install_board();
|
$this->install_board();
|
||||||
|
$this->bootstrap();
|
||||||
static::$already_installed = true;
|
static::$already_installed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue