| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | namespace Drupal\DrupalExtension\Context\Annotation; | 
| 4 | 4 | |
| 5 | 5 | use Behat\Behat\Context\Annotation\AnnotationReader; | 
| 6 | -use Drupal\DrupalExtension\Hook\Dispatcher; | |
| 7 | 6 | use ReflectionMethod; | 
| 8 | 7 | |
| 9 | 8 | /** | 
| @@ -136,7 +136,7 @@ discard block | ||
| 136 | 136 | * out' link text. | 
| 137 | 137 | * @throws \Exception | 
| 138 | 138 | * @return | 
| 139 | - */ | |
| 139 | + string | |
| 140 | 140 |    public function getDrupalText($name) { | 
| 141 | 141 |      $text = $this->getDrupalParameter('text'); | 
| 142 | 142 |      if (!isset($text[$name])) { | 
| @@ -147,6 +147,7 @@ discard block | ||
| 147 | 147 | |
| 148 | 148 | /** | 
| 149 | 149 | * Get active Drupal Driver. | 
| 150 | + * @param string $name | |
| 150 | 151 | */ | 
| 151 | 152 |    public function getDriver($name = NULL) { | 
| 152 | 153 | return $this->getDrupal()->getDriver($name); | 
| @@ -239,9 +240,9 @@ discard block | ||
| 239 | 240 | /** | 
| 240 | 241 | * Dispatch scope hooks. | 
| 241 | 242 | * | 
| 242 | - * @param string $scope | |
| 243 | + * @param string $scopeType | |
| 243 | 244 | * The entity scope to dispatch. | 
| 244 | - * @param stdClass $entity | |
| 245 | + * @param \stdClass $entity | |
| 245 | 246 | * The entity. | 
| 246 | 247 | */ | 
| 247 | 248 |    protected function dispatchHooks($scopeType, \stdClass $entity) { | 
| @@ -441,7 +442,7 @@ discard block | ||
| 441 | 442 | /** | 
| 442 | 443 | * Determine if the a user is already logged in. | 
| 443 | 444 | * | 
| 444 | - * @return boolean | |
| 445 | + * @return \Behat\Mink\Element\NodeElement|null | |
| 445 | 446 | * Returns TRUE if a user is logged in for this session. | 
| 446 | 447 | */ | 
| 447 | 448 |    public function loggedIn() { | 
| @@ -4,15 +4,10 @@ | ||
| 4 | 4 | |
| 5 | 5 | use Behat\MinkExtension\Context\RawMinkContext; | 
| 6 | 6 | use Behat\Testwork\Hook\HookDispatcher; | 
| 7 | - | |
| 8 | 7 | use Drupal\DrupalDriverManager; | 
| 9 | - | |
| 10 | -use Drupal\DrupalExtension\Hook\Scope\AfterLanguageEnableScope; | |
| 11 | 8 | use Drupal\DrupalExtension\Hook\Scope\AfterNodeCreateScope; | 
| 12 | 9 | use Drupal\DrupalExtension\Hook\Scope\AfterTermCreateScope; | 
| 13 | 10 | use Drupal\DrupalExtension\Hook\Scope\AfterUserCreateScope; | 
| 14 | -use Drupal\DrupalExtension\Hook\Scope\BaseEntityScope; | |
| 15 | -use Drupal\DrupalExtension\Hook\Scope\BeforeLanguageEnableScope; | |
| 16 | 11 | use Drupal\DrupalExtension\Hook\Scope\BeforeNodeCreateScope; | 
| 17 | 12 | use Drupal\DrupalExtension\Hook\Scope\BeforeUserCreateScope; | 
| 18 | 13 | use Drupal\DrupalExtension\Hook\Scope\BeforeTermCreateScope; | 
| @@ -48,6 +48,7 @@ discard block | ||
| 48 | 48 | * @When I visit :path | 
| 49 | 49 | * | 
| 50 | 50 | * @throws UnsupportedDriverActionException | 
| 51 | + * @param string $path | |
| 51 | 52 | */ | 
| 52 | 53 |    public function assertAtPath($path) { | 
| 53 | 54 | $this->getSession()->visit($this->locatePath($path)); | 
| @@ -482,6 +483,7 @@ discard block | ||
| 482 | 483 | |
| 483 | 484 | /** | 
| 484 | 485 | * @Then I should get a :code HTTP response | 
| 486 | + * @param string $code | |
| 485 | 487 | */ | 
| 486 | 488 |    public function assertHttpResponse($code) { | 
| 487 | 489 | // Use the Mink Extension step definition. | 
| @@ -1,10 +1,7 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -use Behat\Behat\Tester\Exception\PendingException; | |
| 4 | 3 | use Drupal\DrupalExtension\Context\RawDrupalContext; | 
| 5 | 4 | use Behat\Behat\Context\SnippetAcceptingContext; | 
| 6 | -use Behat\Gherkin\Node\PyStringNode; | |
| 7 | -use Behat\Gherkin\Node\TableNode; | |
| 8 | 5 | |
| 9 | 6 | /** | 
| 10 | 7 | * Defines application features from the specific context. |