Use class directly instead of mocked
This commit is contained in:
parent
3cee48143a
commit
2058928229
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue