Skip to content

This repository will help you setup Drupal extension in Behat which is pretty useful for backend testing

Notifications You must be signed in to change notification settings

shwetaneelsharma/behatdrupalextension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

behatdrupalextension

This repository will help you setup Drupal extension in Behat which is pretty useful for Drupal backend testing

Follow the steps mentioned below to setup Drupal Extension:

1. Create a directory say 'drupalextension'
2. Require the dependency in your composer.json file
	"drupal/drupal-extension" : "~3.0"
3. Add the extension to your behat.yml file
	Drupal\DrupalExtension:
		blackbox: ~
		api_driver: 'drupal'
		drupal:
      			drupal_root: /path/to/your/docroot
4. Update the composer
5. Proceed with Behat installation
6. Run the command bin/behat -dl (You should be able to see a list of steps related to Drupal backend)
7. In order to use the Drupal extension library, modify your FeatureContext file with the lines below:
	use Drupal\DrupalExtension\Context\DrupalContext;
	class FeatureContext extends DrupalContext implements SnippetAcceptingContext, Context {
	}

About

This repository will help you setup Drupal extension in Behat which is pretty useful for backend testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published