Use class directly instead of mocked

This commit is contained in:
Jeremy Pry 2023-09-11 12:27:19 -04:00 committed by Justin Palmer
parent 3cee48143a
commit 2058928229
No known key found for this signature in database
GPG Key ID: ACAB7C35AA2577AF
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class SourceAttributionControllerTest extends WP_UnitTestCase {
*/
protected function setUp(): void {
parent::setUp();
$this->attribution_fields_class = $this->getMockBuilder( SourceAttributionController::class )->getMock();
$this->attribution_fields_class = new SourceAttributionController();
/** @var MockableLegacyProxy $legacy_proxy */
$legacy_proxy = wc_get_container()->get( LegacyProxy::class );