Completed
Push — master ( fdbeef...265a2d )
by jerome
25:01 queued 21:35
created
src/DP/Core/CoreBundle/Behat/DefaultContext.php 2 patches
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         return $this->locatePath($this->generateUrl($route, $parameters));
53 53
     }
54 54
 
55
+    /**
56
+     * @param string $resource
57
+     */
55 58
     protected function getRepository($resource)
56 59
     {
57 60
         return $this->getService('dedipanel.repository.'.$resource);
@@ -327,6 +330,7 @@  discard block
 block discarded – undo
327 330
     /**
328 331
      * @Then /^I should be on the page of ([^""]*) with ([^""]*) "([^""]*)"$/
329 332
      * @Then /^I should still be on the page of ([^""]*) with ([^""]*) "([^""]*)"$/
333
+     * @param string $property
330 334
      */
331 335
     public function iShouldBeOnTheResourcePage($type, $property, $value)
332 336
     {
@@ -340,6 +344,7 @@  discard block
 block discarded – undo
340 344
     /**
341 345
      * @Given /^I am on the page of ([^""]*) with ([^""]*) "([^""]*)"$/
342 346
      * @Given /^I go to the page of ([^""]*) with ([^""]*) "([^""]*)"$/
347
+     * @param string $property
343 348
      */
344 349
     public function iAmOnTheResourcePage($type, $property, $value)
345 350
     {
@@ -361,6 +366,7 @@  discard block
 block discarded – undo
361 366
 
362 367
     /**
363 368
      * @Given /^I am (building|viewing|editing) ([^""]*) with ([^""]*) "([^""]*)"$/
369
+     * @param string $property
364 370
      */
365 371
     public function iAmDoingSomethingWithResource($action, $type, $property, $value)
366 372
     {
@@ -382,6 +388,7 @@  discard block
 block discarded – undo
382 388
 
383 389
     /**
384 390
      * @Then /^I should be (building|viewing|editing|testing) ([^"]*) with ([^"]*) "([^""]*)"$/
391
+     * @param string $property
385 392
      */
386 393
     public function iShouldBeDoingSomethingWithResource($action, $type, $property, $value)
387 394
     {
@@ -430,6 +437,9 @@  discard block
 block discarded – undo
430 437
         $this->getEntityManager()->flush();
431 438
     }
432 439
 
440
+    /**
441
+     * @param string $downloadUrl
442
+     */
433 443
     public function thereIsPlugin($name, $version, $scriptName, $downloadUrl, $flush = true)
434 444
     {
435 445
         if (null === $plugin = $this->getRepository('plugin')->findOneBy(array('name' => $name))) {
@@ -587,6 +597,9 @@  discard block
 block discarded – undo
587 597
         $this->getEntityManager()->flush();
588 598
     }
589 599
 
600
+    /**
601
+     * @return \DP\Core\MachineBundle\Entity\Machine
602
+     */
590 603
     public function thereIsMachine($username, $privateIp = null, $privateKey = null, $groups = array(), $is64Bit = false, $flush = true)
591 604
     {
592 605
         if (null === $machine = $this->getRepository('machine')->findOneBy(array('username' => $username))) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace DP\Core\CoreBundle\Behat;
13 13
 
14
-use FOS\UserBundle\Doctrine\UserManager;
15 14
 use Sylius\Bundle\ResourceBundle\Behat\DefaultContext as SyliusDefaultContext;
16 15
 use Behat\Gherkin\Node\TableNode;
17 16
 
Please login to merge, or discard this patch.