diff --git a/behat.info.yml b/behat.info.yml new file mode 100644 index 0000000..fda828f --- /dev/null +++ b/behat.info.yml @@ -0,0 +1,7 @@ +name: Behat +type: module +description: 'Provding a BDD framework for other modules.' +package: Testing +core: 8.x +dependencies: + - simpletest diff --git a/behat.routing.yml b/behat.routing.yml new file mode 100644 index 0000000..7982fcf --- /dev/null +++ b/behat.routing.yml @@ -0,0 +1,7 @@ +behat.page: + path: '/behat/testing' + defaults: + _controller: '\Drupal\behat\BehatPages::myPage' + _title: 'My first page in D8' + requirements: + _permission: 'access content' \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..e701c70 --- /dev/null +++ b/composer.json @@ -0,0 +1,12 @@ +{ + "require": { + "behat/gherkin": "4.3.0" + }, + "config": { + "vendor-dir": "src/behat" + }, + + "autoload": { + "psr-4": {"Behat\\Gherkin": "src/vendor"} + } +} \ No newline at end of file diff --git a/src/BehatBase.php b/src/BehatBase.php new file mode 100644 index 0000000..fe7a502 --- /dev/null +++ b/src/BehatBase.php @@ -0,0 +1,7 @@ + 'Hello, world', + ); + return $element; + } + +} \ No newline at end of file