-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from pfrenssen/DrupalSubContextInterface
Clean up DrupalSubContextInterface. Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
- Loading branch information
Showing
1 changed file
with
17 additions
and
5 deletions.
There are no files selected for viewing
22 changes: 17 additions & 5 deletions
22
src/Drupal/DrupalExtension/Context/DrupalSubContextInterface.php
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 |
---|---|---|
@@ -1,19 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* Contains \Drupal\DrupalExtension\Context\DrupalSubContextInterface. | ||
*/ | ||
|
||
namespace Drupal\DrupalExtension\Context; | ||
|
||
use Behat\Behat\Context\Context; | ||
|
||
use Drupal\DrupalDriverManager; | ||
|
||
/** | ||
* Interface for subcontexts. | ||
* | ||
* Implement this interface if you want to provide custom Behat step definitions | ||
* for your contributed modules. The class should be placed in a file named | ||
* 'MYMODULE.behat.inc'. | ||
* | ||
* See the documentation on "Contributed module subcontexts". | ||
*/ | ||
interface DrupalSubContextInterface extends Context { | ||
|
||
/** | ||
* Instantiates the subcontext. | ||
* | ||
* @param \Drupal\Drupal | ||
* @param \Drupal\DrupalDriverManager $drupal | ||
* The Drupal Driver manager. | ||
* | ||
* @return string | ||
*/ | ||
public function __construct(DrupalDriverManager $context); | ||
public function __construct(DrupalDriverManager $drupal); | ||
|
||
} |