Exemple #1
0
 /**
  * @test
  *
  * @covers  ::getBasePath
  * @covers  ::getTemplatesPath
  *
  * @return array
  */
 public function pathProvider()
 {
     return [[PathHelper::getBasePath(), 'Base Path'], [PathHelper::getTemplatesPath(), 'Template Path'], [PathHelper::getAliasesPath(), 'Aliases Path'], [PathHelper::getGeneralAliasesPath(), 'General Aliases Path']];
 }
Exemple #2
0
 /**
  * Creates a template on given target path
  *
  * @param string $templateName Template name
  * @param string $targetPath Target full path
  */
 protected function createTemplate($templateName, $targetPath)
 {
     $templatePath = PathHelper::getTemplatesPath() . '/' . $templateName;
     $this->mirror($templatePath, $targetPath);
 }