@@ -251,6 +251,9 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | + /** |
|
| 255 | + * @param null|string $selector |
|
| 256 | + */ |
|
| 254 | 257 | public function assertElementClickable($selector, $by = WebDriver::BY_ID) |
| 255 | 258 | { |
| 256 | 259 | $this->elementAssertion($selector, $by, Clickable::ASSERTION); |
@@ -268,6 +271,9 @@ discard block |
||
| 268 | 271 | $this->testCaseConfiguration = $class; |
| 269 | 272 | } |
| 270 | 273 | |
| 274 | + /** |
|
| 275 | + * @param string $namespace |
|
| 276 | + */ |
|
| 271 | 277 | public static function addBaseNamespace($namespace) |
| 272 | 278 | { |
| 273 | 279 | if (!in_array($namespace, self::$baseNamespaces)) { |
@@ -275,6 +281,9 @@ discard block |
||
| 275 | 281 | } |
| 276 | 282 | } |
| 277 | 283 | |
| 284 | + /** |
|
| 285 | + * @param string $prefix |
|
| 286 | + */ |
|
| 278 | 287 | public static function resolveClass( $class, $prefix = null) |
| 279 | 288 | { |
| 280 | 289 | $origClass = $class; |
@@ -306,6 +315,9 @@ discard block |
||
| 306 | 315 | |
| 307 | 316 | } |
| 308 | 317 | |
| 318 | + /** |
|
| 319 | + * @return string |
|
| 320 | + */ |
|
| 309 | 321 | protected function normalizeClassRequest($class) |
| 310 | 322 | { |
| 311 | 323 | return str_replace('/', '\\', $class); |
@@ -398,7 +410,7 @@ discard block |
||
| 398 | 410 | * |
| 399 | 411 | * Options: 1s (1 second), 1ms (1 millisecond), 1us (1 microsecond), 1ns (1 nanosecond) |
| 400 | 412 | * |
| 401 | - * @param $time |
|
| 413 | + * @param string $time |
|
| 402 | 414 | */ |
| 403 | 415 | |
| 404 | 416 | public function sleep($time) |
@@ -600,7 +612,7 @@ discard block |
||
| 600 | 612 | } |
| 601 | 613 | |
| 602 | 614 | /** |
| 603 | - * @param $xpath |
|
| 615 | + * @param string $xpath |
|
| 604 | 616 | * @return \Facebook\WebDriver\Remote\RemoteWebElement |
| 605 | 617 | */ |
| 606 | 618 | |
@@ -629,6 +641,12 @@ discard block |
||
| 629 | 641 | return $this->webdriver->byCssSelector($selector); |
| 630 | 642 | } |
| 631 | 643 | |
| 644 | + /** |
|
| 645 | + * @param string $xpathTemplate |
|
| 646 | + * @param string $text |
|
| 647 | + * @param string $specificNodeType |
|
| 648 | + * @param string $parentElementSelector |
|
| 649 | + */ |
|
| 632 | 650 | protected function getElementByTextXpath($xpathTemplate, $text, $specificNodeType = null, $parentElementSelector = null) |
| 633 | 651 | { |
| 634 | 652 | |
@@ -15,6 +15,10 @@ |
||
| 15 | 15 | { |
| 16 | 16 | |
| 17 | 17 | abstract function getApiName(); |
| 18 | + |
|
| 19 | + /** |
|
| 20 | + * @return string |
|
| 21 | + */ |
|
| 18 | 22 | abstract function getApiDescription(); |
| 19 | 23 | abstract function getValue(); |
| 20 | 24 | |
@@ -2,13 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Cli\Command; |
| 4 | 4 | |
| 5 | -use Magium\InvalidConfigurationException; |
|
| 6 | -use Magium\NotFoundException; |
|
| 7 | 5 | use Symfony\Component\Console\Command\Command; |
| 8 | 6 | use Symfony\Component\Console\Input\ArrayInput; |
| 9 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 10 | 7 | use Symfony\Component\Console\Input\InputInterface; |
| 11 | -use Symfony\Component\Console\Input\InputOption; |
|
| 12 | 8 | use Symfony\Component\Console\Output\OutputInterface; |
| 13 | 9 | |
| 14 | 10 | abstract class AbstractApiEnablement extends Command |
@@ -2,14 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Cli\Command; |
| 4 | 4 | |
| 5 | -use Magium\InvalidConfigurationException; |
|
| 6 | -use Magium\NotFoundException; |
|
| 7 | 5 | use Symfony\Component\Console\Command\Command; |
| 8 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 9 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 10 | -use Symfony\Component\Console\Input\InputInterface; |
|
| 11 | -use Symfony\Component\Console\Input\InputOption; |
|
| 12 | -use Symfony\Component\Console\Output\OutputInterface; |
|
| 13 | 6 | |
| 14 | 7 | class ApiDisable extends AbstractApiEnablement |
| 15 | 8 | { |
@@ -2,14 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Cli\Command; |
| 4 | 4 | |
| 5 | -use Magium\InvalidConfigurationException; |
|
| 6 | -use Magium\NotFoundException; |
|
| 7 | 5 | use Symfony\Component\Console\Command\Command; |
| 8 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 9 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 10 | -use Symfony\Component\Console\Input\InputInterface; |
|
| 11 | -use Symfony\Component\Console\Input\InputOption; |
|
| 12 | -use Symfony\Component\Console\Output\OutputInterface; |
|
| 13 | 6 | |
| 14 | 7 | class ApiEnable extends AbstractApiEnablement |
| 15 | 8 | { |
@@ -4,14 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Guzzle\Http\Client; |
| 6 | 6 | use Magium\Cli\Command\Test\TestSkeleton; |
| 7 | -use Magium\InvalidConfigurationException; |
|
| 8 | -use Magium\NotFoundException; |
|
| 9 | 7 | use Magium\Util\Api\ApiConfiguration; |
| 10 | 8 | use Symfony\Component\Console\Command\Command; |
| 11 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 12 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 13 | 9 | use Symfony\Component\Console\Input\InputInterface; |
| 14 | -use Symfony\Component\Console\Input\InputOption; |
|
| 15 | 10 | use Symfony\Component\Console\Output\OutputInterface; |
| 16 | 11 | |
| 17 | 12 | class ApiPing extends Command |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | - * @return mixed |
|
| 92 | + * @return string |
|
| 93 | 93 | */ |
| 94 | 94 | public function getProjectId() |
| 95 | 95 | { |