mirror of
https://gh.wpcy.net/https://github.com/typisttech/image-optimize-command.git
synced 2026-05-01 15:25:20 +08:00
25 lines
470 B
PHP
25 lines
470 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace TypistTech\ImageOptimizeCommand\Helper;
|
|
|
|
// here you can define custom actions
|
|
// all public methods declared in helper class will be available in $I
|
|
|
|
use Codeception\Module;
|
|
use Codeception\TestInterface;
|
|
use WP_Mock;
|
|
|
|
class Unit extends Module
|
|
{
|
|
public function _before(TestInterface $test)
|
|
{
|
|
WP_Mock::setUp();
|
|
}
|
|
|
|
public function _after(TestInterface $test)
|
|
{
|
|
WP_Mock::tearDown();
|
|
}
|
|
}
|