diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-10-14 19:41:19 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-10-14 19:42:35 +0200 |
commit | d4189013ab3c6c9fca7fd79c3137888d169f1d60 (patch) | |
tree | 141fd3b4bbcbc359fcee3f274473bc583e98a23d /tests | |
parent | 66b0cfe221667e8776c2244f8748e3eba2632ff4 (diff) | |
download | forums-d4189013ab3c6c9fca7fd79c3137888d169f1d60.tar forums-d4189013ab3c6c9fca7fd79c3137888d169f1d60.tar.gz forums-d4189013ab3c6c9fca7fd79c3137888d169f1d60.tar.bz2 forums-d4189013ab3c6c9fca7fd79c3137888d169f1d60.tar.xz forums-d4189013ab3c6c9fca7fd79c3137888d169f1d60.zip |
[feature/functional-tests] Introduce bootstrap method
PHPBB3-10414
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index bae035e773..73dfe74e45 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -34,6 +34,13 @@ class phpbb_functional_test_case extends phpbb_test_case 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 = '') { parent::__construct($name, $data, $dataName); @@ -45,6 +52,7 @@ class phpbb_functional_test_case extends phpbb_test_case if (!static::$already_installed) { $this->install_board(); + $this->bootstrap(); static::$already_installed = true; } } |