{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1136","repository_url":"https://api.github.com/repos/geerlingguy/drupal-vm","labels_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1136/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1136/comments","events_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1136/events","html_url":"https://github.com/geerlingguy/drupal-vm/issues/1136","id":202307133,"number":1136,"title":"Behat fails to find autoload.php","user":{"login":"rdonkin","id":2864605,"avatar_url":"https://avatars3.githubusercontent.com/u/2864605?v=3","gravatar_id":"","url":"https://api.github.com/users/rdonkin","html_url":"https://github.com/rdonkin","followers_url":"https://api.github.com/users/rdonkin/followers","following_url":"https://api.github.com/users/rdonkin/following{/other_user}","gists_url":"https://api.github.com/users/rdonkin/gists{/gist_id}","starred_url":"https://api.github.com/users/rdonkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdonkin/subscriptions","organizations_url":"https://api.github.com/users/rdonkin/orgs","repos_url":"https://api.github.com/users/rdonkin/repos","events_url":"https://api.github.com/users/rdonkin/events{/privacy}","received_events_url":"https://api.github.com/users/rdonkin/received_events","type":"User","site_admin":false},"labels":[{"id":77016988,"url":"https://api.github.com/repos/geerlingguy/drupal-vm/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-01-21T10:18:44Z","updated_at":"2017-03-24T19:44:28Z","closed_at":"2017-03-24T19:44:28Z","body":"### Issue Type\r\n\r\n - Bug Report / Support Request\r\n\r\n\r\n### Your Environment\r\n\r\n```\r\nvagrant --version && echo \"VirtualBox `vboxmanage --version`\" && ansible --version\r\nVagrant 1.8.7\r\nVirtualBox 5.1.10r112026\r\nansible 2.2.1.0\r\n  config file = \r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n### Your OS\r\n\r\n - **macOS** (version)\r\n\r\n\r\n### Full console output\r\n\r\n```\r\n$ behat\r\nPHP Warning:  require(/var/www/drupalvm/drupal/autoload.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/drupal/drupal-driver/src/Drupal/Driver/Cores/Drupal8.php on line 31\r\n\r\nWarning: require(/var/www/drupalvm/drupal/autoload.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/drupal/drupal-driver/src/Drupal/Driver/Cores/Drupal8.php on line 31\r\nPHP Fatal error:  require(): Failed opening required '/var/www/drupalvm/drupal/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/.composer/vendor/drupal/drupal-driver/src/Drupal/Driver/Cores/Drupal8.php on line 31\r\n\r\nFatal error: require(): Failed opening required '/var/www/drupalvm/drupal/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/.composer/vendor/drupal/drupal-driver/src/Drupal/Driver/Cores/Drupal8.php on line 31\r\n```\r\n\r\nbehat.yml is default from doc page:\r\n```\r\ndefault:\r\n  suites:\r\n    web_features:\r\n      paths: [ %paths.base%/features/web ]\r\n      contexts:\r\n        - WebContext\r\n        - Drupal\\DrupalExtension\\Context\\DrupalContext\r\n        - Drupal\\DrupalExtension\\Context\\MinkContext\r\n        - Drupal\\DrupalExtension\\Context\\MessageContext\r\n        - Drupal\\DrupalExtension\\Context\\DrushContext\r\n  extensions:\r\n    Behat\\MinkExtension:\r\n      goutte: ~\r\n      javascript_session: selenium2\r\n      selenium2:\r\n        wd_host: http://drupalvm.dev:4444/wd/hub\r\n      base_url: http://drupalvm.dev\r\n    Drupal\\DrupalExtension:\r\n      blackbox: ~\r\n      api_driver: 'drupal'\r\n      drupal:\r\n        drupal_root: '/var/www/drupalvm/drupal'\r\n      region_map:\r\n        content: \"#content\"\r\n```\r\n\r\n.feature file:\r\n```\r\n$ cat features/web/HomeContent.feature \r\nFeature: Test DrupalContext\r\n  In order to prove the Behat is working correctly in Drupal VM\r\n  As a developer\r\n  I need to run a simple interface test\r\n\r\n  Scenario: Viewing content in a region\r\n    Given I am on the homepage\r\n    Then I should see \"No front page content has been created yet\" in the \"content\"\r\n```\r\n\r\n### Summary\r\n\r\nI configured Drupal VM to install behat, ran `vagrant provision` again, and followed the default config details on [this doc page](http://docs.drupalvm.com/en/latest/extras/behat/) \r\n\r\nRunning behat gives the error about failing to find `autoload.php` in the Drupal root, listed above.\r\n\r\nCommands like `composer install` or `composer diagnose` don't show any problems.\r\n"},"comment":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/comments/289125388","html_url":"https://github.com/geerlingguy/drupal-vm/issues/1136#issuecomment-289125388","issue_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1136","id":289125388,"user":{"login":"geerlingguy","id":481677,"avatar_url":"https://avatars2.githubusercontent.com/u/481677?v=3","gravatar_id":"","url":"https://api.github.com/users/geerlingguy","html_url":"https://github.com/geerlingguy","followers_url":"https://api.github.com/users/geerlingguy/followers","following_url":"https://api.github.com/users/geerlingguy/following{/other_user}","gists_url":"https://api.github.com/users/geerlingguy/gists{/gist_id}","starred_url":"https://api.github.com/users/geerlingguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geerlingguy/subscriptions","organizations_url":"https://api.github.com/users/geerlingguy/orgs","repos_url":"https://api.github.com/users/geerlingguy/repos","events_url":"https://api.github.com/users/geerlingguy/events{/privacy}","received_events_url":"https://api.github.com/users/geerlingguy/received_events","type":"User","site_admin":false},"created_at":"2017-03-24T19:44:28Z","updated_at":"2017-03-24T19:44:28Z","body":"@rdonkin - Sounds good. I'll close out this issue as I think we debugged as far as we could here—note that a good reference implementation for Behat integration is [Acquia BLT](https://github.com/acquia/blt)."}}
{"actor":{"display_login":"geerlingguy"}}