@@ -80,7 +80,7 @@ |
||
| 80 | 80 | ); |
| 81 | 81 | // stub the language helper to return stores for each website |
| 82 | 82 | $this->_getWebsiteStoresValueMap = array( |
| 83 | - array($this->_defaultWebsite, null, $this->_defaultStores), |
|
| 83 | + array($this->_defaultWebsite, null, $this->_defaultStores), |
|
| 84 | 84 | array($this->_website1, null, $this->_web1Stores), |
| 85 | 85 | ); |
| 86 | 86 | $this->_languageHelper = $this->getHelperMock('eb2ccore/languages', array('getWebsiteStores')); |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -22,10 +22,10 @@ discard block |
||
| 22 | 22 | public function testLoadPimAttributesByProduct() |
| 23 | 23 | { |
| 24 | 24 | $config = array('the config'); |
| 25 | - $attributes = array('_gsi_client_id','sku'); |
|
| 25 | + $attributes = array('_gsi_client_id', 'sku'); |
|
| 26 | 26 | |
| 27 | 27 | $result = array(); |
| 28 | - for ($i=0; $i < 3; $i++) { |
|
| 28 | + for ($i = 0; $i < 3; $i++) { |
|
| 29 | 29 | $result[] = $this->getModelMockBuilder('ebayenterprise_catalog/pim_attribute') |
| 30 | 30 | ->disableOriginalConstructor() |
| 31 | 31 | ->getMock(); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | 'client_id' => 'ClientId', |
| 101 | 101 | 'catalog_id' => 'CatalogId', |
| 102 | 102 | 'sku' => '45-12345', |
| 103 | - 'pim_attributes' => array(1,2,3), |
|
| 103 | + 'pim_attributes' => array(1, 2, 3), |
|
| 104 | 104 | ); |
| 105 | 105 | $pimProduct = Mage::getModel('ebayenterprise_catalog/pim_product', $constructorArgs); |
| 106 | 106 | $this->assertSame('ClientId', $pimProduct->getClientId()); |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | // Swallow libxml warnings. In this tightly controlled case, all that |
| 118 | 118 | // can be expected to be invalid in the XML is the language code so |
| 119 | 119 | // the warnings won't tell us anything more useful anyway. |
| 120 | - set_error_handler(function () { |
|
| 120 | + set_error_handler(function() { |
|
| 121 | 121 | }); |
| 122 | 122 | // Need to capture results instead of just returning them so the error |
| 123 | 123 | // handler used to swallow the libxml errors can be removed. |
@@ -46,7 +46,8 @@ |
||
| 46 | 46 | * @param array |
| 47 | 47 | * @param string | int $field Valid array key |
| 48 | 48 | * @param mixed |
| 49 | - * @return mixed |
|
| 49 | + * @param string $field |
|
| 50 | + * @return EbayEnterprise_Eb2cCore_Helper_Data |
|
| 50 | 51 | */ |
| 51 | 52 | protected function nullCoalesce(array $arr, $field, $default) |
| 52 | 53 | { |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | protected function _buildTestRequest() |
| 137 | 137 | { |
| 138 | - $coreHelper = $this->_helper; |
|
| 138 | + $coreHelper = $this->_helper; |
|
| 139 | 139 | $request = <<<REQUEST |
| 140 | 140 | <AddressValidationRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0"> |
| 141 | 141 | <Header><MaxAddressSuggestions>3</MaxAddressSuggestions></Header> |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | // When the Net_SFTP instance failes to connect, it will trigger an error |
| 219 | 219 | // instead of throwing an exception. Convert the error to an exception |
| 220 | 220 | // so it can halt execution and be caught. |
| 221 | - set_error_handler(function ($errno, $errstr) { |
|
| 221 | + set_error_handler(function($errno, $errstr) { |
|
| 222 | 222 | throw new EbayEnterprise_Eb2cCore_Exception_Sftp_Configuration($errstr); |
| 223 | 223 | }, E_USER_NOTICE); |
| 224 | 224 | try { |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | <PostalCode>19406</PostalCode> |
| 148 | 148 | </Address> |
| 149 | 149 | </AddressValidationRequest> |
| 150 | -REQUEST; |
|
| 150 | +request; |
|
| 151 | 151 | $dom = $coreHelper->getNewDomDocument(); |
| 152 | 152 | $dom->loadXml($request); |
| 153 | 153 | return $dom; |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | public function schemaValidate(DOMDocument $doc, $xsdName) |
| 172 | 172 | { |
| 173 | 173 | $errors = array(); |
| 174 | - set_error_handler(function ($errno, $errstr) use (&$errors) { |
|
| 174 | + set_error_handler(function($errno, $errstr) use (&$errors) { |
|
| 175 | 175 | $errors[] = "'$errstr' [Errno $errno]"; |
| 176 | 176 | }); |
| 177 | 177 | $cfg = Mage::helper('eb2ccore')->getConfigModel(); |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -123,8 +123,7 @@ discard block |
||
| 123 | 123 | { |
| 124 | 124 | $address = $quote->getBillingAddress(); |
| 125 | 125 | return $address ? |
| 126 | - $this->_extractAddressData($address) : |
|
| 127 | - array(); |
|
| 126 | + $this->_extractAddressData($address) : array(); |
|
| 128 | 127 | } |
| 129 | 128 | /** |
| 130 | 129 | * Extract quote amounts from each address. |
@@ -134,7 +133,7 @@ discard block |
||
| 134 | 133 | protected function _extractQuoteAmounts(Mage_Sales_Model_Quote $quote) |
| 135 | 134 | { |
| 136 | 135 | return array_map( |
| 137 | - function ($address) { |
|
| 136 | + function($address) { |
|
| 138 | 137 | return array( |
| 139 | 138 | 'subtotal' => round($address->getSubtotal(), 4) ?: 0.0000, |
| 140 | 139 | 'discount' => round($address->getDiscountAmount(), 4) ?: 0.0000, |
@@ -176,8 +175,7 @@ discard block |
||
| 176 | 175 | protected function _diffBilling(array $oldAddress, array $newAddress) |
| 177 | 176 | { |
| 178 | 177 | return ($oldAddress !== $newAddress) ? |
| 179 | - array('billing' => $newAddress) : |
|
| 180 | - array(); |
|
| 178 | + array('billing' => $newAddress) : array(); |
|
| 181 | 179 | } |
| 182 | 180 | /** |
| 183 | 181 | * Diff the old coupon to the new coupon. Return array of coupon data if coupon |
@@ -190,8 +188,7 @@ discard block |
||
| 190 | 188 | protected function _diffCoupon($oldCoupon, $newCoupon) |
| 191 | 189 | { |
| 192 | 190 | return ($oldCoupon !== $newCoupon) ? |
| 193 | - array('coupon' => $newCoupon) : |
|
| 194 | - array(); |
|
| 191 | + array('coupon' => $newCoupon) : array(); |
|
| 195 | 192 | } |
| 196 | 193 | /** |
| 197 | 194 | * Diff the old shipping data to the new shipping data. Any change to shipping |
@@ -203,8 +200,7 @@ discard block |
||
| 203 | 200 | protected function _diffShipping($oldShipping, $newShipping) |
| 204 | 201 | { |
| 205 | 202 | return ($oldShipping !== $newShipping) ? |
| 206 | - array('shipping' => $newShipping) : |
|
| 207 | - array(); |
|
| 203 | + array('shipping' => $newShipping) : array(); |
|
| 208 | 204 | } |
| 209 | 205 | /** |
| 210 | 206 | * Diff quote item quantities between the old items and new items. Diff should only check for |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -359,7 +359,7 @@ |
||
| 359 | 359 | /** |
| 360 | 360 | * Update the inventory details flag. |
| 361 | 361 | * NOTE: this method cannot set the flag to be false if the flag was already set to be true. |
| 362 | - * @param $value |
|
| 362 | + * @param boolean $value |
|
| 363 | 363 | * @return self |
| 364 | 364 | */ |
| 365 | 365 | public function setDetailsUpdateRequired($value) |
@@ -388,7 +388,7 @@ |
||
| 388 | 388 | if ($expect === '') { |
| 389 | 389 | $expect = null; |
| 390 | 390 | } |
| 391 | - $mockMethod = (trim($iteration['mock_method']) === '')? array() : array($iteration['mock_method']); |
|
| 391 | + $mockMethod = (trim($iteration['mock_method']) === '') ? array() : array($iteration['mock_method']); |
|
| 392 | 392 | |
| 393 | 393 | if (!empty($mockMethod)) { |
| 394 | 394 | switch ($iteration['mock_type']) { |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -43,8 +43,7 @@ |
||
| 43 | 43 | $key, |
| 44 | 44 | $store->getStoreId() |
| 45 | 45 | ); |
| 46 | - switch ($store->getStoreId()) |
|
| 47 | - { |
|
| 46 | + switch ($store->getStoreId()) { |
|
| 48 | 47 | case 2: // Test Team USA Store is configured to default to website language |
| 49 | 48 | $this->assertEquals( |
| 50 | 49 | 'default_lang', |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -57,16 +57,16 @@ |
||
| 57 | 57 | $inventoriedSku = Mage::getModel('sales/quote_item', ['product' => $inventoriedProduct]); |
| 58 | 58 | $nonInventoriedSku = Mage::getModel('sales/quote_item', ['product' => $nonInventoriedProduct]); |
| 59 | 59 | $overrideInventoriedSku = Mage::getModel('sales/quote_item', ['product' => $overrideInventoriedProduct]); |
| 60 | - $inventoriedChildSku = Mage::getModel('sales/quote_item', ['product' => $inventoriedProduct, 'parent_item_id' => 2,]); |
|
| 60 | + $inventoriedChildSku = Mage::getModel('sales/quote_item', ['product' => $inventoriedProduct, 'parent_item_id' => 2, ]); |
|
| 61 | 61 | |
| 62 | 62 | $childInventoriesParentSku = Mage::getModel('sales/quote_item', ['product' => $nonInventoriedProduct]); |
| 63 | 63 | $childInventoriesParentSku->addChild($inventoriedChildSku); |
| 64 | 64 | |
| 65 | 65 | return [ |
| 66 | - [$inventoriedSku, true], // Set by ROM to be inventoried |
|
| 67 | - [$nonInventoriedSku, true], // Set by ROM to not be inventoried |
|
| 68 | - [$overrideInventoriedSku, false], // Set by ROM to be inventoried, but overridden by manage-stock flag |
|
| 69 | - [$inventoriedChildSku, false], // Set by ROM to be inventoried, but has parent, so no check |
|
| 66 | + [$inventoriedSku, true], // Set by ROM to be inventoried |
|
| 67 | + [$nonInventoriedSku, true], // Set by ROM to not be inventoried |
|
| 68 | + [$overrideInventoriedSku, false], // Set by ROM to be inventoried, but overridden by manage-stock flag |
|
| 69 | + [$inventoriedChildSku, false], // Set by ROM to be inventoried, but has parent, so no check |
|
| 70 | 70 | [$childInventoriesParentSku, true], // Set by ROM to not be inventoried, but child forces it. |
| 71 | 71 | ]; |
| 72 | 72 | } |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |