From 87b70f13781b53cee02502d0e84cfe3b10f22900 Mon Sep 17 00:00:00 2001 From: Nikolay Tumbalev Date: Tue, 26 Sep 2017 17:57:16 +0300 Subject: [PATCH 1/2] Rename days to shipping days. --- classes/Kohana/Model/Shipping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Kohana/Model/Shipping.php b/classes/Kohana/Model/Shipping.php index 2526be6..7c7d2d7 100644 --- a/classes/Kohana/Model/Shipping.php +++ b/classes/Kohana/Model/Shipping.php @@ -19,7 +19,7 @@ public static function format_shipping_time($min, $max) if ($min == 1 AND $max == 1) return '1 day'; - return $min == $max ? "{$min} days" : "{$min} - {$max} days"; + return $min == $max ? "{$min} working days" : "{$min} - {$max} working days"; } /** From 20c3b9ee4d303a22dde19d80d04db4eb4f242dc0 Mon Sep 17 00:00:00 2001 From: Nikolay Tumbalev Date: Wed, 27 Sep 2017 11:45:52 +0300 Subject: [PATCH 2/2] Update tests. --- tests/tests/Model/ShippingTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests/Model/ShippingTest.php b/tests/tests/Model/ShippingTest.php index 19c94b5..6923a2f 100644 --- a/tests/tests/Model/ShippingTest.php +++ b/tests/tests/Model/ShippingTest.php @@ -15,8 +15,8 @@ class Model_ShippingTest extends Testcase_Shipping { public function data_format_shipping_time() { return array( - array(3, 5, '3 - 5 days'), - array(5, 5, '5 days'), + array(3, 5, '3 - 5 working days'), + array(5, 5, '5 working days'), array(NULL, NULL, '-'), array(0, 0, 'same day'), );