Skip to content
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
@luckyraul

Description

@luckyraul

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions