浏览代码

Fixes #4252, Fixes #3171 Fixed Codeception

Alexander Makarov 11 年之前
父节点
当前提交
8e1d70c4d4
共有 3 个文件被更改,包括 12 次插入3 次删除
  1. 4 1
      tests/_helpers/CodeHelper.php
  2. 4 1
      tests/_helpers/TestHelper.php
  3. 4 1
      tests/_helpers/WebHelper.php

+ 4 - 1
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';
+    }
 }

+ 4 - 1
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';
+    }
 }

+ 4 - 1
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';
+    }
 }