Fix: Address CoreTest PHPUnit compatibility and remaining PHPCS issues

This commit is contained in:
marcus committed 2025-04-18 19:13:39 +01:00
1 parent 7051fb1193
commit 6d9a9658ea
2 files changed
+10 -7

No files matched your search

+6 -4
View File
@@ -20,9 +20,10 @@ class CoreTest extends \WP_Mock\Tools\TestCase {
private $core;
/**
* Set up test environment
* Set up the test environment.
*/
public function setUp() {
public function setUp(): void
{
parent::setUp();
// Set up mocks
@@ -33,9 +34,10 @@ class CoreTest extends \WP_Mock\Tools\TestCase {
}
/**
* Tear down test environment
* Tear down the test environment.
*/
public function tearDown() {
public function tearDown(): void
{
WP_Mock::tearDown();
parent::tearDown();
}