Skip to content

Commit

Permalink
Merge pull request #9 from pkolomiy/request
Browse files Browse the repository at this point in the history
Added files for codeception tests
  • Loading branch information
SilverFire committed Jun 5, 2018
2 parents 342210c + a1134ea commit 24f08c7
Show file tree
Hide file tree
Showing 7 changed files with 3,132 additions and 1 deletion.
13 changes: 13 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
actor: AcceptanceTester
namespace: hipanel\modules\hosting\tests
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
extensions:
enabled:
- Codeception\Extension\RunFailed
params:
- '%PARAMS_LOCATION%'
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
},
"autoload": {
"psr-4": {
"hipanel\\modules\\hosting\\": "src"
"hipanel\\modules\\hosting\\": "src",
"hipanel\\modules\\hosting\\tests": "tests"
}
},
"extra": {
Expand Down
2 changes: 2 additions & 0 deletions tests/_output/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
26 changes: 26 additions & 0 deletions tests/_support/AcceptanceTester.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
namespace hipanel\modules\hosting\tests\_support;

/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
*
* @SuppressWarnings(PHPMD)
*/
class AcceptanceTester extends \Codeception\Actor
{
use _generated\AcceptanceTesterActions;

/**
* Define custom actions here
*/
}
2 changes: 2 additions & 0 deletions tests/_support/_generated/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 24f08c7

Please sign in to comment.