MageTest / BehatMage

Behat for Magento
MIT License
85 stars 31 forks source link

[ReflectionException] Class Mage_Core_Model_Config_Data does not exist #63

Closed aldosuwandi closed 9 years ago

aldosuwandi commented 10 years ago

Hi, I have just followed your tutorial to setup magento with behat. After I added this in my behat.yml :

default: extensions: MageTest\MagentoExtension\Extension: base_url: "http://mywebsite.local.com"

Then, I executed bin/behat and I got this error in my terminal : [ReflectionException] Class Mage_Core_Model_Config_Data does not exist

vernard commented 10 years ago

Can you please post your composer.json file? You might have forgotten to add a few lines at the autoload part.

jamescowie commented 9 years ago

You will get this error if you have not updated the autoload section within composer.json Example being

"autoload": {
        "psr-0": {
            "":[
                "vendor/magetest/magento/src/app",
                "vendor/magetest/magento/src/lib",
                "vendor/magetest/magento/src/app/code/local",
                "vendor/magetest/magento/src/app/code/community",
                "vendor/magetest/magento/src/app/code/core"
            ]
        }
    },

Replace vendor... with the path to Magento within your project. If this does not resolve the problem please re open the ticket.