@@ -102,7 +102,7 @@ |
||
102 | 102 | * Get the configuration flag value represented by the given configKey |
103 | 103 | * @param string $configKey |
104 | 104 | * @param null|string|bool|int|Mage_Core_Model_Store $store |
105 | - * @return bool |
|
105 | + * @return string|boolean |
|
106 | 106 | */ |
107 | 107 | public function getConfig($configKey, $store = null) |
108 | 108 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Single point of access for retrieving configuration values. |
@@ -44,7 +44,8 @@ |
||
44 | 44 | * @param array |
45 | 45 | * @param mixed |
46 | 46 | * @param mixed |
47 | - * @return mixed |
|
47 | + * @param string $key |
|
48 | + * @return EbayEnterprise_Eb2cCore_Helper_Data |
|
48 | 49 | */ |
49 | 50 | protected function nullCoalesce(array $arr, $key, $default) |
50 | 51 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @param EbayEnterprise_Eb2cCore_Helper_Languages |
39 | - * @return array |
|
39 | + * @return EbayEnterprise_Eb2cCore_Helper_Languages[] |
|
40 | 40 | */ |
41 | 41 | protected function _checkTypes( |
42 | 42 | EbayEnterprise_Eb2cCore_Helper_Languages $langHelper, |
@@ -71,6 +71,7 @@ discard block |
||
71 | 71 | * is not, throw an exception. |
72 | 72 | * |
73 | 73 | * @param string |
74 | + * @param string $langCode |
|
74 | 75 | * @return self |
75 | 76 | * @throws EbayeEnterprise_Eb2cCore_Exception If value is not a valid language code. |
76 | 77 | */ |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Clean the provided language code value so it can be consistent with BCP47 |
@@ -124,8 +124,8 @@ |
||
124 | 124 | |
125 | 125 | /** |
126 | 126 | * @param string $alias model alias |
127 | - * @param array $methodActions mapping of method name to a value or PHPUnit_Framework_MockObject_Stub |
|
128 | - * @return object mock object with specified methods mocked under the 'any' invokation constraint. |
|
127 | + * @param array $methods mapping of method name to a value or PHPUnit_Framework_MockObject_Stub |
|
128 | + * @return EcomDev_PHPUnit_Mock_Proxy mock object with specified methods mocked under the 'any' invokation constraint. |
|
129 | 129 | */ |
130 | 130 | protected function _buildModelMock($alias, array $methods = []) |
131 | 131 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | abstract class EbayEnterprise_Eb2cCore_Test_Base extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * Get an eb2ccore helper to translate the messages. Replaces the translate |
21 | 21 | * method with a simpler callback that will simply prepend the string |
22 | 22 | * "Translated_" to the beginning of the first argument it is passed. |
23 | - * @return Mock_EbayEnterprise_Eb2cCore_Helper_Data |
|
23 | + * @return EcomDev_PHPUnit_Mock_Proxy |
|
24 | 24 | */ |
25 | 25 | protected function _getMockTranslationHelper() |
26 | 26 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | |
17 | 17 | class EbayEnterprise_Eb2cCore_Test_Helper_Api_ValidatorTest extends EbayEnterprise_Eb2cCore_Test_Base |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $helper->expects($this->once()) |
30 | 30 | ->method('__') |
31 | 31 | ->will($this->returnCallback( |
32 | - function ($msg) { |
|
32 | + function($msg) { |
|
33 | 33 | return 'Translated_' . $msg; |
34 | 34 | } |
35 | 35 | )); |
@@ -121,7 +121,8 @@ |
||
121 | 121 | * |
122 | 122 | * @param string |
123 | 123 | * @param array $methods shipping method array |
124 | - * @return Mage_Shipping_Model_Carrier_Abstract |
|
124 | + * @param string $title |
|
125 | + * @return PHPUnit_Framework_MockObject_MockObject |
|
125 | 126 | */ |
126 | 127 | protected function mockCarrier($title, $methods = null) |
127 | 128 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Eb2cCore_Test_Helper_ShippingTest extends EbayEnterprise_Eb2cCore_Test_Base |
17 | 17 | { |
@@ -33,7 +33,8 @@ |
||
33 | 33 | * @param int $qty Qty of the item in the cart |
34 | 34 | * @param bool $isVirtual Is the item virtual |
35 | 35 | * @param int |
36 | - * @return Mage_Sales_Model_Quote_Item The stub quote item |
|
36 | + * @param integer $itemId |
|
37 | + * @return EcomDev_PHPUnit_Mock_Proxy The stub quote item |
|
37 | 38 | */ |
38 | 39 | protected function _stubQuoteItem($sku, $qty, $isVirtual, $itemId) |
39 | 40 | { |
@@ -1,17 +1,17 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Eb2cCore_Test_Model_SessionTest extends EbayEnterprise_Eb2cCore_Test_Base |
17 | 17 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | ->expects($this->any()) |
51 | 51 | ->method('getIsVirtual') |
52 | 52 | ->will($this->returnValue($isVirtual)); |
53 | - $item |
|
53 | + $item |
|
54 | 54 | ->expects($this->any()) |
55 | 55 | ->method('getId') |
56 | 56 | ->will($this->returnValue($itemId)); |
@@ -552,11 +552,11 @@ discard block |
||
552 | 552 | |
553 | 553 | return [ |
554 | 554 | // old new bill coupon shipping items amounts final |
555 | - [$old, $new, $billDiff, $empty, $empty, $empty, $empty, $billDiff], |
|
556 | - [$old, $new, $billDiff, $couponDiff, $empty, $empty, $empty, $billDiff + $couponDiff], |
|
557 | - [$old, $new, $empty, $couponDiff, $shipDiff, $empty, $empty, $couponDiff + $shipDiff], |
|
558 | - [$old, $new, $billDiff, $couponDiff, $shipDiff, $itemDiff, $empty, $billDiff + $couponDiff + $shipDiff + $itemDiff], |
|
559 | - [$old, $new, $billDiff, $couponDiff, $shipDiff, $itemDiff, $amountsDiff, $billDiff + $couponDiff + $shipDiff + $itemDiff + $amountsDiff], |
|
555 | + [$old, $new, $billDiff, $empty, $empty, $empty, $empty, $billDiff], |
|
556 | + [$old, $new, $billDiff, $couponDiff, $empty, $empty, $empty, $billDiff + $couponDiff], |
|
557 | + [$old, $new, $empty, $couponDiff, $shipDiff, $empty, $empty, $couponDiff + $shipDiff], |
|
558 | + [$old, $new, $billDiff, $couponDiff, $shipDiff, $itemDiff, $empty, $billDiff + $couponDiff + $shipDiff + $itemDiff], |
|
559 | + [$old, $new, $billDiff, $couponDiff, $shipDiff, $itemDiff, $amountsDiff, $billDiff + $couponDiff + $shipDiff + $itemDiff + $amountsDiff], |
|
560 | 560 | ]; |
561 | 561 | } |
562 | 562 | /** |
@@ -693,9 +693,9 @@ discard block |
||
693 | 693 | { |
694 | 694 | return [ |
695 | 695 | // currFlag newFlag |
696 | - [true, false], |
|
697 | - [false, true], |
|
698 | - [false, false], |
|
696 | + [true, false], |
|
697 | + [false, true], |
|
698 | + [false, false], |
|
699 | 699 | ]; |
700 | 700 | } |
701 | 701 | /** |
@@ -856,14 +856,14 @@ discard block |
||
856 | 856 | |
857 | 857 | return [ |
858 | 858 | // quoteData diff has virtual hasManaged tax deets |
859 | - [$quoteData, $coupon, false, true, true, false], |
|
860 | - [$quoteData, $billing, false, true, false, false], |
|
861 | - [$quoteData, $billing, true, true, true, false], |
|
862 | - [$quoteData, $shipping, false, true, true, true], |
|
863 | - [$quoteData, $shipping, false, false, true, false], |
|
864 | - [$quoteData, $managed, false, true, true, true], |
|
865 | - [$quoteData, $noManaged, true, false, true, false], |
|
866 | - [$quoteData, $amount, false, false, true, false], |
|
859 | + [$quoteData, $coupon, false, true, true, false], |
|
860 | + [$quoteData, $billing, false, true, false, false], |
|
861 | + [$quoteData, $billing, true, true, true, false], |
|
862 | + [$quoteData, $shipping, false, true, true, true], |
|
863 | + [$quoteData, $shipping, false, false, true, false], |
|
864 | + [$quoteData, $managed, false, true, true, true], |
|
865 | + [$quoteData, $noManaged, true, false, true, false], |
|
866 | + [$quoteData, $amount, false, false, true, false], |
|
867 | 867 | ]; |
868 | 868 | } |
869 | 869 | /** |
@@ -967,7 +967,7 @@ discard block |
||
967 | 967 | // the same. skus should match data extracted from the quote. |
968 | 968 | // last_updated should have been updated to the current time - best |
969 | 969 | // test I can think of for that is just making sure the new time is more recent that the old one |
970 | - function ($quoteData) use ($oldData, $skuDataExtract) { |
|
970 | + function($quoteData) use ($oldData, $skuDataExtract) { |
|
971 | 971 | return $quoteData['billing'] === $oldData['billing'] && |
972 | 972 | $quoteData['coupon'] === $oldData['coupon'] && |
973 | 973 | $quoteData['shipping'] === $oldData['shipping'] && |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * user object. |
197 | 197 | * @param Mage_Admin_Model_User $user |
198 | 198 | * @param Mage_Core_Controller_Request_Http $request |
199 | - * @param Mage_Core_Exception $authException |
|
199 | + * @param EbayEnterprise_Eb2cCustomerService_Exception_Authentication $authException |
|
200 | 200 | * @return null |
201 | 201 | * @codeCoverageIgnore All side-effects taken from Magento auth/login process |
202 | 202 | */ |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | |
17 | 17 | class EbayEnterprise_Eb2cCustomerService_Overrides_Model_Admin_Session extends Mage_Admin_Model_Session |
@@ -63,8 +63,7 @@ |
||
63 | 63 | EbayEnterprise_MageLog_Helper_Data $logger, |
64 | 64 | EbayEnterprise_MageLog_Helper_Context $context, |
65 | 65 | Mage_Adminhtml_Model_Url $url |
66 | - ) |
|
67 | - { |
|
66 | + ) { |
|
68 | 67 | return func_get_args(); |
69 | 68 | } |
70 | 69 |
@@ -65,6 +65,7 @@ |
||
65 | 65 | * @param string |
66 | 66 | * @param array |
67 | 67 | * @param mixed |
68 | + * @param string $key |
|
68 | 69 | * @return mixed |
69 | 70 | */ |
70 | 71 | protected function _nullCoalesce($key, array $ar, $default) |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Eb2cFraud_Helper_Data extends Mage_Core_Helper_Abstract |
17 | 17 | { |