b06ea9e605
Also stub translation functions in base TestCase so __() calls from WPMultiCity namespace resolve correctly via Brain Monkey. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
437 B
PHP
24 lines
437 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WPMultiCity\Tests;
|
|
|
|
use Brain\Monkey;
|
|
use PHPUnit\Framework\TestCase as BaseTestCase;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
Monkey\setUp();
|
|
Monkey\Functions\stubTranslationFunctions();
|
|
}
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
Monkey\tearDown();
|
|
parent::tearDown();
|
|
}
|
|
}
|