Completed
Push — master ( 20b8ce...b87dd6 )
by Alexey
05:19
created

FunctionalTester::seeValidationError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
namespace backend\tests;
3
4
/**
5
 * Inherited Methods
6
 * @method void wantToTest($text)
7
 * @method void wantTo($text)
8
 * @method void execute($callable)
9
 * @method void expectTo($prediction)
10
 * @method void expect($prediction)
11
 * @method void amGoingTo($argumentation)
12
 * @method void am($role)
13
 * @method void lookForwardTo($achieveValue)
14
 * @method void comment($description)
15
 * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
16
 *
17
 * @SuppressWarnings(PHPMD)
18
 */
19
class FunctionalTester extends \Codeception\Actor
20
{
21
    use _generated\FunctionalTesterActions;
0 ignored issues
show
Bug introduced by
The type backend\tests\_generated\FunctionalTesterActions was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
   /**
23
    * Define custom actions here
24
    */
25
    public function seeValidationError($message)
26
    {
27
        $this->see($message, '.help-block');
28
    }
29
30
    public function dontSeeValidationError($message)
31
    {
32
        $this->dontSee($message, '.help-block');
33
    }
34
}
35