Skip to content

Commit

Permalink
Added non-built-in shipping provider update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Apr 11, 2024
1 parent 83abbc4 commit dcf304e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit-tests/util/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,15 @@ public function test_install_non_built_in_providers() {

remove_all_filters( 'woocommerce_gzd_shipping_provider_class_names' );

Vendidero\Germanized\Shipments\ShippingProvider\Helper::instance()->shipping_providers = null;

update_option( 'woocommerce_gzd_shipments_shipper_address_country', 'AT' );
update_option( 'woocommerce_gzd_dhl_version', '1.0' );
update_option( 'woocommerce_default_country', 'AT' );

var_dump( \Vendidero\Germanized\Shipments\Package::get_base_country() );
var_dump( \Vendidero\Germanized\DHL\Package::has_dependencies() );
var_dump( \Vendidero\Germanized\Shipments\ShippingProvider\Helper::instance()->get_shipping_providers() );

WC_GZD_Install::install();

Expand Down

0 comments on commit dcf304e

Please sign in to comment.