Completed
Push — master ( bf01ff...38a9f6 )
by Pavel
02:21
created

Functional   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 18
c 0
b 0
f 0
rs 10
1
<?php
2
namespace Helper;
3
4
// here you can define custom actions
5
// all public methods declared in helper class will be available in $I
6
7
use app\components\ApplicationMock;
8
9
class Functional extends \Codeception\Module
10
{
11
    /**
12
     * Testing module id
13
     * @var string
14
     */
15
    protected $_moduleId = 'activeuser';
16
17
    /**
18
     * Change currently running application the module params
19
     * @param array $params new params value
20
     * @param string|null $moduleId module id for change configuration. if null, use Fnctional::$_moduleId
21
     */
22
    public function changeModuleParams($params, $moduleId = null)
23
    {
24
        ApplicationMock::changeModule($moduleId ?: $this->_moduleId, $params);
25
    }
26
}
27