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:
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||
namespace WPMultiCity\Tests;
|
||||
|
||||
use Brain\Monkey;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\TestCase as BaseTestCase;
|
||||
|
||||
abstract class TestCase extends BaseTestCase
|
||||
@@ -18,7 +17,6 @@ abstract class TestCase extends BaseTestCase
|
||||
protected function tearDown(): void
|
||||
{
|
||||
Monkey\tearDown();
|
||||
Mockery::close();
|
||||
parent::tearDown();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user