mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-25 19:20:29 +08:00
Codeceoption adjustments
- Removed hacks since these are no longer required: 71db233985
- Removed unused helper classes
- Added 2.0 style "actor" to config
Thanks to @Ragazzo and @DavertMik for helping with it.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: tests/_log
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for CodeGuy
|
||||
|
||||
class CodeHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../unit/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for TestGuy
|
||||
|
||||
class TestHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../functional/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for WebGuy
|
||||
|
||||
class WebHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../acceptance/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@
|
||||
class_name: WebGuy
|
||||
modules:
|
||||
enabled:
|
||||
- WebHelper
|
||||
- PhpBrowser
|
||||
- common\tests\_helpers\FixtureHelper
|
||||
# you can use WebDriver instead of PhpBrowser to test javascript and ajax.
|
||||
|
||||
@@ -10,7 +10,6 @@ class_name: TestGuy
|
||||
modules:
|
||||
enabled:
|
||||
- Filesystem
|
||||
- TestHelper
|
||||
- Yii2
|
||||
- common\tests\_helpers\FixtureHelper
|
||||
config:
|
||||
|
||||
@@ -4,5 +4,3 @@
|
||||
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
|
||||
|
||||
class_name: CodeGuy
|
||||
modules:
|
||||
enabled: [CodeHelper]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: tests/_log
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for CodeGuy
|
||||
|
||||
class CodeHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../unit/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,3 @@
|
||||
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
|
||||
|
||||
class_name: CodeGuy
|
||||
modules:
|
||||
enabled:
|
||||
- CodeHelper
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: tests/_log
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for CodeGuy
|
||||
|
||||
class CodeHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../unit/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -4,5 +4,3 @@
|
||||
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
|
||||
|
||||
class_name: CodeGuy
|
||||
modules:
|
||||
enabled: [CodeHelper]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: tests/_log
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for CodeGuy
|
||||
|
||||
class CodeHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../unit/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for TestGuy
|
||||
|
||||
class TestHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../functional/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom functions for WebGuy
|
||||
|
||||
class WebHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../acceptance/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@
|
||||
class_name: WebGuy
|
||||
modules:
|
||||
enabled:
|
||||
- WebHelper
|
||||
- PhpBrowser
|
||||
- common\tests\_helpers\FixtureHelper
|
||||
# you can use WebDriver instead of PhpBrowser to test javascript and ajax.
|
||||
|
||||
@@ -10,7 +10,6 @@ class_name: TestGuy
|
||||
modules:
|
||||
enabled:
|
||||
- Filesystem
|
||||
- TestHelper
|
||||
- Yii2
|
||||
- common\tests\_helpers\FixtureHelper
|
||||
config:
|
||||
|
||||
@@ -4,5 +4,3 @@
|
||||
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
|
||||
|
||||
class_name: CodeGuy
|
||||
modules:
|
||||
enabled: [CodeHelper]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
actor: Tester
|
||||
paths:
|
||||
tests: tests
|
||||
log: tests/_log
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
class CodeHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../unit/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
class TestHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../functional/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
class WebHelper extends \Codeception\Module
|
||||
{
|
||||
public function _beforeSuite($settings = [])
|
||||
{
|
||||
include __DIR__.'/../acceptance/_bootstrap.php';
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@
|
||||
class_name: WebGuy
|
||||
modules:
|
||||
enabled:
|
||||
- WebHelper
|
||||
- PhpBrowser
|
||||
# you can use WebDriver instead of PhpBrowser to test javascript and ajax.
|
||||
# This will require you to install selenium. See http://codeception.com/docs/04-AcceptanceTests#Selenium
|
||||
|
||||
@@ -10,7 +10,6 @@ class_name: TestGuy
|
||||
modules:
|
||||
enabled:
|
||||
- Filesystem
|
||||
- TestHelper
|
||||
- Yii2
|
||||
config:
|
||||
Yii2:
|
||||
|
||||
@@ -4,6 +4,3 @@
|
||||
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
|
||||
|
||||
class_name: CodeGuy
|
||||
modules:
|
||||
enabled:
|
||||
- CodeHelper
|
||||
|
||||
Reference in New Issue
Block a user