diff --git a/behat.local.yml b/behat.local.yml index 9f4cc5d4377786cfcd99e5a6e383c38f6632acd2..47cc3ec668157942ce5288f7b38daf1d4647e518 100644 --- a/behat.local.yml +++ b/behat.local.yml @@ -6,5 +6,5 @@ default: Drupal\DrupalExtension: drupal: # This assumes that we're running Behat from within - # DRUPAL_ROOT/profiles/lightning. + # DRUPAL_ROOT/profiles/varbase. drupal_root: '../../' diff --git a/behat.yml b/behat.yml index 5fb6df39b6feedc9b10988fb57ea5571492106b5..cdb8d9b5c7f2dfd6adec815cd716c22c58eab566 100644 --- a/behat.yml +++ b/behat.yml @@ -4,6 +4,7 @@ default: paths: - %paths.base%/tests/features contexts: + - VarbaseContext - Drupal\DrupalExtension\Context\DrupalContext - Drupal\DrupalExtension\Context\MinkContext - Drupal\DrupalExtension\Context\MessageContext diff --git a/composer.json b/composer.json index 817cd61a63f5eb2ce3a367219eddd0ad9f9e43d0..72e0585bcbce6fdc3c7f22a5b986b44c37323427 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,11 @@ "jcalderonzumba/gastonjs": "~1.0.2", "jcalderonzumba/mink-phantomjs-driver": "~0.3.1", "mikey179/vfsStream": "~1.2", + "behat/mink-zombie-driver": "@stable", + "behat/mink-sahi-driver": "@stable", + "behatch/contexts": "*", "phpunit/phpunit": "~4.8", + "emuse/behat-html-formatter": "@stable", "symfony/css-selector": "~2.8", "drupal/devel": "^8.0.0", "squizlabs/php_codesniffer": "2.*" diff --git a/tests/features/bootstrap/FeatureContext.php b/tests/features/bootstrap/VarbaseContext.php similarity index 99% rename from tests/features/bootstrap/FeatureContext.php rename to tests/features/bootstrap/VarbaseContext.php index 047edda7082fb7685c43b6edb10de79453253364..2ba111c0e4dfbafe682477dbaa06169d88c11839 100644 --- a/tests/features/bootstrap/FeatureContext.php +++ b/tests/features/bootstrap/VarbaseContext.php @@ -2,7 +2,7 @@ /** * @file - * Contains \FeatureContext. + * Contains \VarbaseContext. */ use Drupal\DrupalExtension\Context\RawDrupalContext; @@ -11,7 +11,7 @@ use Behat\Behat\Context\SnippetAcceptingContext; /** * Defines application features from the specific context. */ -class FeatureContext extends RawDrupalContext implements SnippetAcceptingContext { +class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext { /** * #varbase : To authenticat a user with a gavin username and password on the spot.