fix(wpmc S2): drop redundant Mockery::close from TestCase teardown

Brain\Monkey\tearDown() already calls Mockery::close internally;
calling it explicitly duplicates the close.
This commit is contained in:
Vladimir Bryzgalov
2026-05-12 17:34:47 +05:00
parent d98499dbb2
commit 945ae898ac
-2
View File
@@ -4,7 +4,6 @@ declare(strict_types=1);
namespace WPMultiCity\Tests; namespace WPMultiCity\Tests;
use Brain\Monkey; use Brain\Monkey;
use Mockery;
use PHPUnit\Framework\TestCase as BaseTestCase; use PHPUnit\Framework\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase abstract class TestCase extends BaseTestCase
@@ -18,7 +17,6 @@ abstract class TestCase extends BaseTestCase
protected function tearDown(): void protected function tearDown(): void
{ {
Monkey\tearDown(); Monkey\tearDown();
Mockery::close();
parent::tearDown(); parent::tearDown();
} }
} }