This repository was archived by the owner on May 27, 2023. It is now read-only.
This repository was archived by the owner on May 27, 2023. It is now read-only.
Flat and non Flat enviroment for same model #250
Open
Description
I trying to make test for function which works differently depending on product_flat status.
I tried to work with fixtures:
config:
default/catalog/frontend/flat_catalog_product: 1
and for non flat
config:
default/catalog/frontend/flat_catalog_product: 0
The result is 0 with Mage::getStoreConfig('catalog/frontend/flat_catalog_product')
Then I created two different test files for same model and tried to resolve just by setting value via Mage::getModel('core/config')->saveConfig('catalog/frontend/flat_catalog_product', 1)
like in #52 and reinitStores()
in setUp()
function
The result was promising but it worked only depending on last state. And if you ran reinitStores
in the both files I got the session problem session_module_name(): A session is active
Metadata
Metadata
Assignees
Labels
No labels