Skip to main content

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 MappingsSimple ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable 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 valueCan't really be tested because this is not a fixed value    Can't really be tested because this is not a fixed valueCan't really be tested because this is not a fixed valueCan'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 ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable SCP (external extension related)Configurable SCP Associated (external extension related)Comment

mapAttributeDescription

This is currently a fallback for mapColumnDescriptionThis is currently a fallback for mapColumnDescription    This is currently a fallback for mapColumnDescriptionThis is currently a fallback for mapColumnDescriptionThis is currently a fallback for mapColumnDescription 

mapAttributeName

          

Generic Column Mappings

Simple ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable SCP (external extension related)Configurable SCP Associated (external extension related)Comment

mapColumnDescription

         This should be changed/removed
3rd Party Extension DirectivesSimple ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable SCP (external extension related) Configurable SCP Associated (external extension related)Comment

mapDirectiveImageLink360Magic

          

mapDirectiveExternalImageLink

          
mapDirectiveAdditionalImageLink360Magic          
mapAttributeAwShopbybrandBrand          

Google Mappings

Google Directive MappingsSimple ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable SCP (external extension related)Configurable SCP Associated (external extension related)Comment

mapDirectivePriceBuckets

          

mapDirectiveIdentifierExists

          
mapDirectiveItemGroupId          

Bing Mappings

Google Directive MappingsSimple ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable SCP (external extension related)Configurable SCP Associated (external extension related)Comment

mapDirectivePrice

          

mapDirectiveSalePrice

          

Mapping parameters

MappingParameter CommentSimple ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable SCP (external extension related)Configurable SCP Associated (external extension related)
Generic Mappings          
mapDirectiveIdStore Id         
mapDirectivePriceTax Yes/No         
mapDirectiveSalePriceTax Yes/No         
mapDirectiveUrlSuffix         
mapDirectiveImageLinkBase / Small / Thumbnail         
mapDirectiveAdditionalImageLinkBase / Small / Thumbnail         

 

Product values

Product attributeCommentSimple ProductsConfigurable ProductsGrouped ProductsBundle ProductsGiftcard ProductsSimple AssociatedConfigurable AssociatedConfigurable 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.