Skip to content
Permalink
Browse files

Fix for generate:controller. See #3998 (#3999)

  • Loading branch information...
reganking authored and LOBsTerr committed Feb 12, 2019
1 parent 3051dbb commit 4321d51339851fe5f175c6c3e19b070efd01b7ac
Showing with 4 additions and 3 deletions.
  1. +3 −2 src/Extension/Extension.php
  2. +1 −1 src/Generator/ControllerGenerator.php
@@ -134,12 +134,13 @@ public function getTemplatePath($fullPath = false)
}
/**
* @param string $testType
* @param bool $fullPath
* @return string
*/
public function getTestsPath($fullPath = false)
public function getTestsPath($testType, $fullPath = false)
{
return $this->getPath($fullPath) . '/tests';
return $this->getPath($fullPath) . '/tests/' . $testType;
}
/**
@@ -54,7 +54,7 @@ public function generate(array $parameters)
if ($test) {
$this->renderFile(
'module/Tests/Controller/controller.php.twig',
$moduleInstance->getTestPath('Controller') . '/' . $class . 'Test.php',
$moduleInstance->getTestsPath('Controller') . '/' . $class . 'Test.php',
$parameters
);
}

0 comments on commit 4321d51

Please sign in to comment.
You can’t perform that action at this time.