forked from hechoendrupal/drupal-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeneratorTest.php
More file actions
37 lines (30 loc) · 740 Bytes
/
Copy pathGeneratorTest.php
File metadata and controls
37 lines (30 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* @file
* Contains Drupal\AppConsole\Test\Generator\GeneratorTest.
*/
namespace Drupal\AppConsole\Test\Generator;
abstract class GeneratorTest extends \PHPUnit_Framework_TestCase
{
public $dir;
public function setUp()
{
$this->setUpTemporalDirectory();
if (!defined('DRUPAL_ROOT')) {
define('DRUPAL_ROOT', getcwd());
}
}
public function setUpTemporalDirectory()
{
$this->dir = sys_get_temp_dir() . "/modules";
}
public function getSkeletonDirs()
{
$skeletonDirs[] = __DIR__ . '/../../templates';
return $skeletonDirs;
}
public function getModulePath($module)
{
return $this->dir . '/' . $module;
}
}