/var/www/html_de/wp-content/plugins/wp-smtp/tests/_support/Helper/Acceptance.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace Helper;

use 
Codeception\Module;
use 
Codeception\TestInterface;
use 
lucatume\WPBrowser\Module\WPCLI;

class 
Acceptance extends Module {
    
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
    
public function _beforeTestInterface $test ): void {
        
parent::_before$test );

        
$this->cli()->cli( [ 'core''update-db' ] );
        
$this->cli()->cli( [ 'plugin''activate''wp-smtp' ] );
    }

    private function 
cli(): WPCLI {
        
/** @var WPCLI */
        
return $this->getModule'WPCLI' );
    }
}