These are chat archives for Behat/Behat

11th
Aug 2017
Grummfy
@Grummfy
Aug 11 2017 07:37
indeed
Grummfy
@Grummfy
Aug 11 2017 10:22
@bitwombat ciaranmcnulty/behat-psr7extension#15 perhaps can help
Bit Wombat
@bitwombat
Aug 11 2017 12:00
@Grummfy Wow -that's your PR. Very cool. How'd you figure out how to do that?
Wait a minute... is that a "psr7extension" because it's communicating with Mink? In that case, does that PR belong in that extension?
Grummfy
@Grummfy
Aug 11 2017 12:06
psr7 use mink to browse, yes. it's an extension that handle request from the browser without the need of a server (request send to object request ...)
but what I have done is simply find a way to expose the application that are used in psr7 extension
it takes a long time to understand it, behat have some lack of documentation about dependency injection and the helper container
Feonor01
@Feonor01
Aug 11 2017 13:33
Can someone help me with @api tag. I installed Drupal API Driver for my project and When I run this code @api Scenario: An administrator should not be able to create a page content Given I am logged in as a user with the 'supervisor' role

I get message ```[PDOException]
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
[PDOException]
PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known

behat [-s|--suite SUITE] [-f|--format FORMAT] [-o|--out OUT] [--format-settings FORMAT-SETTINGS] [--init] [--lang LANG] [--name NAME] [--tags TAGS] [--role ROLE] [--story-syntax] [-d|--definitions DEFINITIONS] [--append-snippets] [--no-snippets] [--strict] [--order ORDER] [--rerun] [--stop-on-failure] [--dry-run] [--] [<paths>]```

Feonor01
@Feonor01
Aug 11 2017 13:54
This is my behat.yml:
default:
  suites:
    default:
      contexts:
        - FeatureContext
        - Drupal\DrupalExtension\Context\DrupalContext
        - Drupal\DrupalExtension\Context\MinkContext
        - Drupal\DrupalExtension\Context\MessageContext
        - Drupal\DrupalExtension\Context\DrushContext
  extensions:
    Behat\DebugExtension: ~
    Behat\MinkExtension:
      goutte: ~
      selenium2: ~
      base_url: https://www.test.com/ 
      blackbox: ~
      api_driver: 'drupal'
      drush:
        alias: 'local'
      drupal:
        drupal_root: '/home/marko/www/btn8/docroot'
      region_map:
        header bottom: '.layout-header-bottom'
        sidebar: '.layout-sidebar'
        footer: 'footer'
      api_driver: 'drush'
Bit Wombat
@bitwombat
Aug 11 2017 21:39
@Feonor01 that means it can't find your database...
Grummfy
@Grummfy
Aug 11 2017 21:40
or that the dns resolution has an error