| @@ -11,8 +11,8 @@ | ||
| 11 | 11 | // Helpers. | 
| 12 | 12 | use Behat\Mink\Element\NodeElement; | 
| 13 | 13 | // Utils. | 
| 14 | -use Drupal\TqExtension\Utils\XPath; | |
| 15 | 14 | use Drupal\TqExtension\Cores\DrupalKernelPlaceholder; | 
| 15 | +use Drupal\TqExtension\Utils\XPath; | |
| 16 | 16 | |
| 17 | 17 | class RawPageContext extends RawDrupalContext | 
| 18 | 18 |  { | 
| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | // Scope definitions. | 
| 8 | 8 | use Behat\Behat\Hook\Scope; | 
| 9 | 9 | // Utils. | 
| 10 | +use Drupal\TqExtension\Cores\DrupalKernelPlaceholder; | |
| 10 | 11 | use Drupal\TqExtension\Utils\Database\Database; | 
| 11 | 12 | use Drupal\TqExtension\Utils\LogicalAssertion; | 
| 12 | -use Drupal\TqExtension\Cores\DrupalKernelPlaceholder; | |
| 13 | 13 | |
| 14 | 14 | class TqContext extends RawTqContext | 
| 15 | 15 |  { | 
| @@ -4,14 +4,14 @@ | ||
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | 6 | use Behat\Behat\Hook\Scope\BeforeFeatureScope; | 
| 7 | -use Drupal\Core\Field\FieldDefinitionInterface; | |
| 8 | -use Drupal\Core\Entity\FieldableEntityInterface; | |
| 9 | -use Drupal\Core\Session\AccountInterface; | |
| 7 | +use Drupal\Component\Render\FormattableMarkup; | |
| 8 | +use Drupal\Component\Serialization\Json; | |
| 10 | 9 | use Drupal\Core\Database\Database; | 
| 11 | 10 | use Drupal\Core\Database\Query\Select; | 
| 11 | +use Drupal\Core\Entity\FieldableEntityInterface; | |
| 12 | +use Drupal\Core\Field\FieldDefinitionInterface; | |
| 13 | +use Drupal\Core\Session\AccountInterface; | |
| 12 | 14 | use Drupal\Core\StringTranslation\TranslatableMarkup; | 
| 13 | -use Drupal\Component\Render\FormattableMarkup; | |
| 14 | -use Drupal\Component\Serialization\Json; | |
| 15 | 15 | use Drupal\TqExtension\Utils\Database\FetchField; | 
| 16 | 16 | |
| 17 | 17 | // @codingStandardsIgnoreStart | 
| @@ -117,6 +117,7 @@ discard block | ||
| 117 | 117 | |
| 118 | 118 | /** | 
| 119 | 119 |       * {@inheritdoc} | 
| 120 | + * @param string $name | |
| 120 | 121 | */ | 
| 121 | 122 | public function getDrupalText($name) | 
| 122 | 123 |      { | 
| @@ -216,7 +217,7 @@ discard block | ||
| 216 | 217 | * @param array $args | 
| 217 | 218 | * Placeholder declarations. | 
| 218 | 219 | * | 
| 219 | - * @return mixed | |
| 220 | + * @return string | |
| 220 | 221 | */ | 
| 221 | 222 | public function executeJs($javascript, array $args = []) | 
| 222 | 223 |      { | 
| @@ -233,7 +234,7 @@ discard block | ||
| 233 | 234 | * | 
| 234 | 235 | * @param StepScope $event | 
| 235 | 236 | * | 
| 236 | - * @return int | |
| 237 | + * @return boolean | |
| 237 | 238 | */ | 
| 238 | 239 | public static function isStepImpliesJsEvent(StepScope $event) | 
| 239 | 240 |      { | 
| @@ -11,22 +11,22 @@ | ||
| 11 | 11 | use Behat\Behat\Context\Exception\ContextNotFoundException; | 
| 12 | 12 | use Behat\DebugExtension\Debugger; | 
| 13 | 13 | // Helpers. | 
| 14 | -use WebDriver\Session; | |
| 15 | -use Drupal\Driver\DrushDriver; | |
| 16 | -use Drupal\Driver\DriverInterface as DrupalDriverInterface; | |
| 17 | -use Drupal\Component\Utility\Random; | |
| 18 | -use Behat\Mink\Element\NodeElement; | |
| 14 | +use Behat\Behat\Context\Environment\InitializedContextEnvironment; | |
| 15 | +use Behat\Behat\Hook\Scope\StepScope; | |
| 16 | +use Behat\Mink\Driver\DriverInterface as SessionDriverInterface; | |
| 19 | 17 | use Behat\Mink\Driver\GoutteDriver; | 
| 20 | 18 | use Behat\Mink\Driver\Selenium2Driver; | 
| 21 | -use Behat\Mink\Driver\DriverInterface as SessionDriverInterface; | |
| 22 | -use Behat\Behat\Hook\Scope\StepScope; | |
| 23 | -use Behat\Behat\Context\Environment\InitializedContextEnvironment; | |
| 19 | +use Behat\Mink\Element\NodeElement; | |
| 24 | 20 | use Behat\Testwork\Environment\Environment; | 
| 21 | +use Drupal\Component\Utility\Random; | |
| 22 | +use Drupal\Driver\DriverInterface as DrupalDriverInterface; | |
| 23 | +use Drupal\Driver\DrushDriver; | |
| 24 | +use WebDriver\Session; | |
| 25 | 25 | // Utils. | 
| 26 | -use Drupal\TqExtension\Utils\Url; | |
| 27 | -use Drupal\TqExtension\Utils\Tags; | |
| 28 | -use Drupal\TqExtension\Utils\JavaScript; | |
| 29 | 26 | use Drupal\TqExtension\Cores\DrupalKernelPlaceholder; | 
| 27 | +use Drupal\TqExtension\Utils\JavaScript; | |
| 28 | +use Drupal\TqExtension\Utils\Tags; | |
| 29 | +use Drupal\TqExtension\Utils\Url; | |
| 30 | 30 | |
| 31 | 31 | /** | 
| 32 | 32 | * @see RawTqContext::__call() | 
| @@ -91,6 +91,9 @@ | ||
| 91 | 91 | self::requireContext(__FUNCTION__, func_get_args()); | 
| 92 | 92 | } | 
| 93 | 93 | |
| 94 | + /** | |
| 95 | + * @param string $path | |
| 96 | + */ | |
| 94 | 97 | public static function setCurrentPath($path) | 
| 95 | 98 |      { | 
| 96 | 99 | self::requireContext(__FUNCTION__, func_get_args()); |