EcomDev / EcomDev_PHPUnit

Magento PHPUnit Integration
http://www.ecomdev.org/shop/code-testing/php-unit-test-suite.html
Open Software License 3.0
299 stars 166 forks source link

Fix bad assignment of $row #259

Closed k4emic closed 1 year ago

k4emic commented 9 years ago

This pull fixes an issue where the attribute_set_id would be assigned in the $values[$index][...], but not in the $row variable (which is pulled from $values[$index]).

I stumbled on this problem while running unittests from groupscatalog2 https://github.com/Vinai/groupscatalog2 (catalog_product entities in the global.yml file).

k4emic commented 9 years ago

This might not be THE way to go around it, but it solved the SQL exception that was raised because the attribute_set_id was set to 0, since this is the DEFAULT value in the catalog_product_entity table.

robbieaverill commented 9 years ago

Makes sense, +1