Unit test Expansion List
This is a work-document where we list all the possible tests that we need to create.
Each provider test must include all generic mappings!
Mappings
Generic Mappings
Only Generic mapping test must include:
Mapping parameters tests
Product values tests
| Generic Directive Mappings | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) | Comment |
|---|---|---|---|---|---|---|---|---|---|---|
mapDirectiveId | ||||||||||
mapDirectiveStaticValue | ||||||||||
mapDirectiveProductReviewAverage | ||||||||||
mapDirectiveProductReviewCount | ||||||||||
mapDirectiveUrl | ||||||||||
mapDirectiveImageLink | ||||||||||
mapDirectiveCategoryImageLink | ||||||||||
mapDirectiveAdditionalImageLink | ||||||||||
mapDirectivePrice | ||||||||||
mapDirectiveSalePrice | ||||||||||
mapDirectiveSalePriceEffectiveDate | ||||||||||
mapDirectiveQuantity | ||||||||||
mapDirectiveAvailability | ||||||||||
mapDirectiveExpirationDate | Can't really be tested because this is not a fixed value | Can't really be tested because this is not a fixed value | Can't really be tested because this is not a fixed value | Can't really be tested because this is not a fixed value | Can't really be tested because this is not a fixed value | |||||
mapDirectiveShippingWeight | ||||||||||
mapDirectiveGoogleCategoryByCategory | Rename to mapDirectiveTaxonomyByCategory | |||||||||
mapDirectiveShipping | ||||||||||
mapDirectiveProductTypeMagentoCategory | ||||||||||
mapDirectiveIsBundle | ||||||||||
mapDirectiveVariantAttributes | ||||||||||
mapDirectiveProductOption | ||||||||||
mapDirectiveConcatenate | ||||||||||
Generic Attributes Mappings | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) | Comment |
mapAttributeDescription | This is currently a fallback for mapColumnDescription | This is currently a fallback for mapColumnDescription | This is currently a fallback for mapColumnDescription | This is currently a fallback for mapColumnDescription | This is currently a fallback for mapColumnDescription | |||||
mapAttributeName | ||||||||||
Generic Column Mappings | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) | Comment |
mapColumnDescription | This should be changed/removed | |||||||||
| 3rd Party Extension Directives | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) | Comment |
mapDirectiveImageLink360Magic | ||||||||||
mapDirectiveExternalImageLink | ||||||||||
| mapDirectiveAdditionalImageLink360Magic | ||||||||||
| mapAttributeAwShopbybrandBrand |
Google Mappings
| Google Directive Mappings | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) | Comment |
|---|---|---|---|---|---|---|---|---|---|---|
mapDirectivePriceBuckets | ||||||||||
mapDirectiveIdentifierExists | ||||||||||
| mapDirectiveItemGroupId |
Bing Mappings
| Google Directive Mappings | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) | Comment |
|---|---|---|---|---|---|---|---|---|---|---|
mapDirectivePrice | ||||||||||
mapDirectiveSalePrice |
Mapping parameters
| Mapping | Parameter Comment | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) |
|---|---|---|---|---|---|---|---|---|---|---|
| Generic Mappings | ||||||||||
| mapDirectiveId | Store Id | |||||||||
| mapDirectivePrice | Tax Yes/No | |||||||||
| mapDirectiveSalePrice | Tax Yes/No | |||||||||
| mapDirectiveUrl | Suffix | |||||||||
| mapDirectiveImageLink | Base / Small / Thumbnail | |||||||||
| mapDirectiveAdditionalImageLink | Base / Small / Thumbnail |
Product values
| Product attribute | Comment | Simple Products | Configurable Products | Grouped Products | Bundle Products | Giftcard Products | Simple Associated | Configurable Associated | Configurable SCP (external extension related) | Configurable SCP Associated (external extension related) |
|---|---|---|---|---|---|---|---|---|---|---|
| MSRP | ||||||||||
| Minimal Order Quantity | ||||||||||
| Order Quantity Increments |
Running SCP Tests
The SCP tests have been written by using the OrganicInternet_SimpleConfigurableProducts extension. This extension hasn't been updated in a while and there's an issue when installing it. You can read more about the issue here https://www.magentocommerce.com/magento-connect/simple-configurable-products.html in the Reviews tab. The extension committed to the RSF repository contains a modified version of the Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Price_Configurable class which fixes the issue. A re-indexing is required in order for the code to work.
No comments to display
No comments to display