Add CheckoutMock class
This commit is contained in:
parent
eaf68b1192
commit
422c4db3b3
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue