mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
38 lines
792 B
PHP
38 lines
792 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce;
|
|
|
|
use function Brain\Monkey\Functions\when;
|
|
use function Brain\Monkey\setUp;
|
|
use function Brain\Monkey\tearDown;
|
|
use Mockery;
|
|
|
|
class TestCase extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
when('__')->returnArg();
|
|
when('_x')->returnArg();
|
|
when('esc_url')->returnArg();
|
|
when('esc_attr')->returnArg();
|
|
when('esc_attr__')->returnArg();
|
|
when('esc_html')->returnArg();
|
|
when('esc_html__')->returnArg();
|
|
when('esc_textarea')->returnArg();
|
|
when('sanitize_text_field')->returnArg();
|
|
when('wp_kses_post')->returnArg();
|
|
when('wp_unslash')->returnArg();
|
|
|
|
setUp();
|
|
}
|
|
|
|
public function tearDown(): void
|
|
{
|
|
tearDown();
|
|
Mockery::close();
|
|
parent::tearDown();
|
|
}
|
|
}
|