diff --git a/package.json b/package.json index f9672cd3..0f83a677 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "woocommerce-germanized-shipments", "title": "Shipments for WooCommerce", - "version": "4.0.1", + "version": "4.0.2", "homepage": "https://vendidero.de", "repository": { "type": "git", diff --git a/src/Package.php b/src/Package.php index 23958674..cf8db0fa 100644 --- a/src/Package.php +++ b/src/Package.php @@ -18,7 +18,7 @@ class Package { * * @var string */ - const VERSION = '4.0.1'; + const VERSION = '4.0.2'; public static $upload_dir_suffix = ''; diff --git a/tests/unit-tests/functions.php b/tests/unit-tests/functions.php index b650f3d9..67b0a45d 100644 --- a/tests/unit-tests/functions.php +++ b/tests/unit-tests/functions.php @@ -229,5 +229,12 @@ function test_wc_gzd_split_shipment_street() { 'addition' => '4 OG', 'addition_2' => '', ), wc_gzd_split_shipment_street( 'Konrad-Adenauer-Allee 50, 4 OG' ) ); + + $this->assertEquals( array( + 'street' => 'Bahnhofstraße', + 'number' => '0', + 'addition' => '', + 'addition_2' => '', + ), wc_gzd_split_shipment_street( 'Bahnhofstraße 0' ) ); } } \ No newline at end of file diff --git a/woocommerce-germanized-shipments.php b/woocommerce-germanized-shipments.php index 48d9af61..a2d0d05a 100644 --- a/woocommerce-germanized-shipments.php +++ b/woocommerce-germanized-shipments.php @@ -5,7 +5,7 @@ * Description: The Germanized Shipments integration, installed as a feature plugin for development and testing purposes. * Author: vendidero * Author URI: https://vendidero.de - * Version: 4.0.1 + * Version: 4.0.2 * Requires PHP: 5.6 * License: GPLv3 *