2016-01-05 11:01:02 +01:00
|
|
|
<?php
|
|
|
|
|
namespace Helper;
|
|
|
|
|
|
2016-02-01 17:19:34 +01:00
|
|
|
use Codeception;
|
2019-10-14 09:57:26 +02:00
|
|
|
|
2016-01-05 11:01:02 +01:00
|
|
|
// here you can define custom actions
|
|
|
|
|
// all public methods declared in helper class will be available in $I
|
|
|
|
|
|
2016-02-01 17:19:34 +01:00
|
|
|
/**
|
|
|
|
|
* Class Unit
|
|
|
|
|
* @package Helper
|
|
|
|
|
*/
|
|
|
|
|
class Unit extends Codeception\Module
|
2016-01-05 11:01:02 +01:00
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
/**
|
|
|
|
|
* HOOK: used after configuration is loaded
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _initialize()
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: on every Actor class initialization
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _cleanup()
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: before suite
|
|
|
|
|
*
|
|
|
|
|
* @param array $settings
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _beforeSuite($settings = [])
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: after suite
|
|
|
|
|
**/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _afterSuite()
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: before each step
|
|
|
|
|
*
|
|
|
|
|
* @param Codeception\Step $step*
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _beforeStep(Codeception\Step $step)
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: after each step
|
|
|
|
|
*
|
|
|
|
|
* @param Codeception\Step $step
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _afterStep(Codeception\Step $step)
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: before each suite
|
|
|
|
|
*
|
|
|
|
|
* @param Codeception\TestCase $test
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _before(Codeception\TestCase $test)
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: before each suite
|
|
|
|
|
*
|
|
|
|
|
* @param Codeception\TestCase $test
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _after(Codeception\TestCase $test)
|
|
|
|
|
{
|
2016-02-01 17:19:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HOOK: on fail
|
|
|
|
|
*
|
|
|
|
|
* @param Codeception\TestCase $test
|
|
|
|
|
* @param $fail
|
|
|
|
|
*/
|
2019-10-14 09:57:26 +02:00
|
|
|
public function _failed(Codeception\TestCase $test, $fail)
|
|
|
|
|
{
|
2016-01-29 18:18:09 +01:00
|
|
|
}
|
2016-01-05 11:01:02 +01:00
|
|
|
}
|