woocommerce/plugins/woocommerce-blocks/tests/php/mocks/AssetDataRegistry.php

27 lines
457 B
PHP

<?php
namespace Automattic\WooCommerce\Blocks\Tests\Mocks;
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
class AssetDataRegistryMock extends AssetDataRegistry {
private $debug = true;
public function execute_lazy_data() {
parent::execute_lazy_data();
}
public function get() {
return parent::get();
}
public function set_debug( $debug ) {
$this->debug = $debug;
}
protected function debug() {
return $this->debug;
}
}