From 8e1d70c4d4a9f93d214ceb3411615f267765661e Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 11 Jul 2014 01:11:50 +0400 Subject: [PATCH] Fixes #4252, Fixes #3171 Fixed Codeception --- tests/_helpers/CodeHelper.php | 5 ++++- tests/_helpers/TestHelper.php | 5 ++++- tests/_helpers/WebHelper.php | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/_helpers/CodeHelper.php b/tests/_helpers/CodeHelper.php index 201503d..8ed5769 100644 --- a/tests/_helpers/CodeHelper.php +++ b/tests/_helpers/CodeHelper.php @@ -3,5 +3,8 @@ namespace Codeception\Module; class CodeHelper extends \Codeception\Module { - // here you can define custom methods for CodeGuy + public function _beforeSuite($settings = []) + { + include __DIR__.'/../unit/_bootstrap.php'; + } } diff --git a/tests/_helpers/TestHelper.php b/tests/_helpers/TestHelper.php index ae94187..65f8076 100644 --- a/tests/_helpers/TestHelper.php +++ b/tests/_helpers/TestHelper.php @@ -3,5 +3,8 @@ namespace Codeception\Module; class TestHelper extends \Codeception\Module { - // here you can define custom methods for TestGuy + public function _beforeSuite($settings = []) + { + include __DIR__.'/../functional/_bootstrap.php'; + } } diff --git a/tests/_helpers/WebHelper.php b/tests/_helpers/WebHelper.php index a8c7250..c332c4a 100644 --- a/tests/_helpers/WebHelper.php +++ b/tests/_helpers/WebHelper.php @@ -3,5 +3,8 @@ namespace Codeception\Module; class WebHelper extends \Codeception\Module { - // here you can define custom methods for WebGuy + public function _beforeSuite($settings = []) + { + include __DIR__.'/../acceptance/_bootstrap.php'; + } }