BaseIntegrationCest::_after()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
4
namespace SmartWeb\ModuleTesting;
5
6
use Codeception\Scenario;
7
use Illuminate\Support\Facades\Storage;
8
use Mockery;
9
use SmartWeb\ModuleTesting\Util\UsesDisk;
10
11
12
/**
13
 * Class BaseIntegrationCest
14
 *
15
 * @package SmartWeb\ModuleTesting
16
 */
17
abstract class BaseIntegrationCest extends BaseCodeceptionCest
18
{
19
    
20
    use UsesDisk;
21
    
22
    /**
23
     * @inheritDoc
24
     */
25
    public function _beforeSuite(array $settings = [])
26
    {
27
        parent::_beforeSuite($settings);
28
        
29
        Storage::fake(static::$disk);
30
    }
31
    
32
    /**
33
     * @inheritDoc
34
     */
35
    public function _before(Scenario $S)
36
    {
37
        $this->scenario = $S;
38
        
39
        $this->backupItems();
40
    }
41
    
42
    /**
43
     * @inheritDoc
44
     */
45
    public function _after(Scenario $S)
0 ignored issues
show
Unused Code introduced by
The parameter $S is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
46
    {
47
        $this->restoreItems();
48
        Mockery::close();
49
    }
50
    
51
    /**
52
     * @inheritDoc
53
     */
54
    public function _failed($fail)
0 ignored issues
show
Unused Code introduced by
The parameter $fail is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
55
    {
56
    
57
    }
58
    
59
}
60