Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Flat and non Flat enviroment for same model #250

Open
luckyraul opened this issue Apr 13, 2015 · 0 comments
Open

Flat and non Flat enviroment for same model #250

luckyraul opened this issue Apr 13, 2015 · 0 comments

Comments

@luckyraul
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant