Skip to content

Commit

Permalink
fix: change formatting and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSDV committed Nov 6, 2024
1 parent a20806f commit b714c08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 8 additions & 10 deletions src/Contract/WooCommerceServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@

namespace MyParcelNL\WooCommerce\Contract;


interface WooCommerceServiceInterface
{
/**
* @return bool
* @see https://stackoverflow.com/a/77950175
* @return string
*/
public function isUsingBlocksCheckout(): bool;
public function getVersion(): string;

/**
* Whether HPOS is enabled in WooCommerce.
* @return bool
*/
public function isUsingHpos(): bool;
public function isActive(): bool;

/**
* @return string
* @return bool
*/
public function getVersion(): string;
public function isUsingBlocksCheckout(): bool;

/**
* @return bool
* Whether HPOS is enabled in WooCommerce.
*/
public function isActive(): bool;
public function isUsingHpos(): bool;
}
1 change: 0 additions & 1 deletion tests/Unit/Hooks/CheckoutScriptHooksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function (
factory(CheckoutSettings::class)
->withEnableDeliveryOptions($enableDeliveryOptions)
->withEnableDeliveryOptionsWhenNotInStock($enableDeliveryOptionsWhenNotInStock)
->withDeliveryOptionsPosition('woocommerce_after_checkout_billing_form')
->store();

$product = wpFactory(WC_Product::class)
Expand Down

0 comments on commit b714c08

Please sign in to comment.