First drush driver behat test

With drush driver for behat you will have some more power, basically drush power to do things. So to make out first drush test, you will need to bring some change in behat.yml file and change some lines.

 Drupal\DrupalExtension:
      blackbox: ~
      api_driver: 'drush'
      drush:
        alias: 'localtest'

This will still run BLACKBOX tests from yout .feature file but now you can also run drush tests, providing you have an drush alias set, this can be drush alias for localsite or any remote, it will work, so you can run tests on vagrant from your local machine or run them on some cloud server, wherever you did set your alias. It's also possible to just run it without alias and put this to match local directory
 

 Drupal\DrupalExtension:
   blackbox: ~
 drush:
   root: /my/path/to/drupal

Either way, add some new tests to your some.feature file

 @api
  Scenario: Tagged scenario uses Drush driver and succeeds
    Given I am logged in as a user with the "authenticated user" role
    When I click "My account"
    Then I should see the text "Member for"

key thing is @api key before the scenario, this will make drush run the test and do what it says it will, again no additional PHP needed as this are or predefined in classes included in your behat drupal extension library that is included in your FeatureContext.php which  you should have set when you first installed behat and initialized it . 

<?php

use Drupal\DrupalExtension\Context\RawDrupalContext;
use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\Behat\Tester\Exception\PendingException;

/**
 * Defines application features from the specific context.
 */
class FeatureContext extends RawDrupalContext implements SnippetAcceptingContext {

  /**
   * Initializes context.
   *
   * Every scenario gets its own context instance.
   * You can also pass arbitrary arguments to the
   * context constructor through behat.yml.
   */
  public function __construct() {
  }

}