@@ -21,14 +21,16 @@ |
||
21 | 21 | /** |
22 | 22 | * Sets SilverStripe instance. |
23 | 23 | * |
24 | - * @param String $database_name Temp database name |
|
24 | + * @param String $databaseName Temp database name |
|
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function setDatabase($databaseName); |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * Marks steps as AJAX steps for special treatment |
30 | 31 | * |
31 | - * @param array $ajax_steps Array of step name parts to match |
|
32 | + * @param array $ajaxSteps Array of step name parts to match |
|
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | public function setAjaxSteps($ajaxSteps); |
34 | 36 | } |
@@ -134,7 +134,7 @@ |
||
134 | 134 | * When using the "data-title" attribute, ensure not to include double quotes. |
135 | 135 | * |
136 | 136 | * @param String $region Region name or CSS selector |
137 | - * @return MinkElement|null |
|
137 | + * @return \Behat\Mink\Element\NodeElement |
|
138 | 138 | */ |
139 | 139 | public function getRegionObj($region) { |
140 | 140 | // Try to find regions directly by CSS selector. |
@@ -2,21 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace SilverStripe\BehatExtension\Context; |
4 | 4 | |
5 | -use Behat\Behat\Context\Step, |
|
6 | - Behat\Behat\Event\FeatureEvent, |
|
7 | - Behat\Behat\Event\ScenarioEvent, |
|
8 | - Behat\Behat\Event\SuiteEvent; |
|
9 | -use Behat\Gherkin\Node\PyStringNode; |
|
5 | +use Behat\Behat\Context\Step; |
|
6 | +use Behat\Behat\Event\ScenarioEvent; |
|
10 | 7 | use Behat\MinkExtension\Context\MinkContext; |
11 | -use Behat\Mink\Driver\GoutteDriver, |
|
12 | - Behat\Mink\Driver\Selenium2Driver, |
|
13 | - Behat\Mink\Exception\UnsupportedDriverActionException, |
|
14 | - Behat\Mink\Exception\ElementNotFoundException; |
|
15 | - |
|
8 | +use Behat\Mink\Driver\GoutteDriver; |
|
9 | +use Behat\Mink\Driver\Selenium2Driver; |
|
10 | +use Behat\Mink\Exception\UnsupportedDriverActionException; |
|
11 | +use Behat\Mink\Exception\ElementNotFoundException; |
|
16 | 12 | use SilverStripe\BehatExtension\Context\SilverStripeAwareContextInterface; |
17 | 13 | |
18 | -use Symfony\Component\Yaml\Yaml; |
|
19 | - |
|
20 | 14 | // Mink etc. |
21 | 15 | require_once 'vendor/autoload.php'; |
22 | 16 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * @return array |
|
67 | + * @return Compiler\CoreInitializationPass[] |
|
68 | 68 | */ |
69 | 69 | public function getCompilerPasses() |
70 | 70 | { |
@@ -2,11 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace SilverStripe\BehatExtension; |
4 | 4 | |
5 | -use Symfony\Component\Config\FileLocator, |
|
6 | - Symfony\Component\DependencyInjection\ContainerBuilder, |
|
7 | - Symfony\Component\DependencyInjection\Loader\YamlFileLoader, |
|
8 | - Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
|
9 | - |
|
5 | +use Symfony\Component\Config\FileLocator; |
|
6 | +use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
7 | +use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
|
8 | +use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
|
10 | 9 | use Behat\Behat\Extension\ExtensionInterface; |
11 | 10 | |
12 | 11 | /* |