Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function customerLogin() on a non-object #38

Open
FlorianSLT opened this issue Dec 27, 2013 · 1 comment
Open

Call to a member function customerLogin() on a non-object #38

FlorianSLT opened this issue Dec 27, 2013 · 1 comment
Labels

Comments

@FlorianSLT
Copy link

Hi, I just installed Behat for Magento and started to create my first Behat Test but when I use the MagentoContext, I encounter this error:

PHP Fatal error: Call to a member function customerLogin() on a non-object in /var/www/sf/main/magento/vendor/magetest/magento-behat-extension/src/MageTest/MagentoExtension/Context/MagentoContext.php on line 104

Here's my behat.yml:

default:
  paths:
    features:  features
    bootstrap: features/bootstrap

annotations:
  paths:
    features: features/annotations

closures:
  paths:
    features: features/closures

extensions:
  MageTest\MagentoExtension\Extension:
    base_url: "http://avanti.magento.main.sf.devs.ppm.galilee.fr"

It looks like my behat.yml is never read

And here is my directory layout:

project-dir
├── behat.yml
├── bin
│ └── behat
├── composer.json
├── composer.lock
├── features
│ ├── bootstrap
│ └── ...
├── app
├── downloader
├── index.php
├── js
├── skin
├── var
└── ...
└── vendor
├── autoload.php
├── behat
├── magetest
└── ...

@jamescowie
Copy link
Member

Have you updated your composer.yml file with the autoload section ? Can you provide the scenario and step definition you are using that is causing this error ?

@jamescowie jamescowie added the bug label Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants