-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Roy Segall
committed
Feb 21, 2015
0 parents
commit 8434f9a
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: Behat | ||
type: module | ||
description: 'Provding a BDD framework for other modules.' | ||
package: Testing | ||
core: 8.x | ||
dependencies: | ||
- simpletest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"require": { | ||
"behat/gherkin": "4.3.0" | ||
}, | ||
"config": { | ||
"vendor-dir": "src/behat" | ||
}, | ||
|
||
"autoload": { | ||
"psr-4": {"Behat\\Gherkin": "src/vendor"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Drupal\behat; | ||
|
||
abstract class BehatBase { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
namespace Drupal\behat; | ||
|
||
use Behat\Gherkin\Gherkin; | ||
use Drupal\Core\Controller\ControllerBase; | ||
|
||
class BehatPages extends ControllerBase { | ||
|
||
/** | ||
* Returns a simple page. | ||
* | ||
* @return array | ||
* A simple renderable array. | ||
*/ | ||
public function myPage() { | ||
$foo = new Gherkin(); | ||
$element = array( | ||
'#markup' => 'Hello, world', | ||
); | ||
return $element; | ||
} | ||
|
||
} |