Add CheckoutMock class

This commit is contained in:
Thomas Roberts 2024-09-19 19:03:24 +01:00
parent eaf68b1192
commit 422c4db3b3
No known key found for this signature in database
GPG Key ID: 0262BEBCBE336365
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?php
declare( strict_types = 1 );
namespace Automattic\WooCommerce\Tests\Blocks\Mocks;
use Automattic\WooCommerce\Blocks\BlockTypes\Checkout;
/**
* A mock class.
*/
class CheckoutMock extends Checkout {
/**
* Mock the enqueue_data method so we can call it from tests.
*
* @return void
*/
public function mock_enqueue_data() {
$this->enqueue_data();
}
}