mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX Fixture the 'app' dir instead of mysite in unit tests
This commit is contained in:
parent
c4f8af543c
commit
5da708d223
@ -3,4 +3,4 @@
|
||||
require __DIR__ . '/../bootstrap/init.php';
|
||||
require FRAMEWORK_PATH . '/tests/bootstrap/init.php';
|
||||
require FRAMEWORK_PATH . '/tests/bootstrap/environment.php';
|
||||
require __DIR__ . '/../bootstrap/mysite.php';
|
||||
require __DIR__ . '/../bootstrap/app.php';
|
||||
|
@ -4,4 +4,4 @@ require __DIR__ . '/bootstrap/init.php';
|
||||
require FRAMEWORK_PATH . '/tests/bootstrap/init.php';
|
||||
require FRAMEWORK_PATH . '/tests/bootstrap/cli.php';
|
||||
require FRAMEWORK_PATH . '/tests/bootstrap/environment.php';
|
||||
require __DIR__ . '/bootstrap/mysite.php';
|
||||
require __DIR__ . '/bootstrap/app.php';
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
// Mock mysite if not installed with silverstripe/installer
|
||||
// Mock app if not installed with silverstripe/installer
|
||||
if (defined('BASE_PATH')) {
|
||||
$projectPath = BASE_PATH . '/mysite';
|
||||
$projectPath = BASE_PATH . '/app';
|
||||
} else {
|
||||
$projectPath = getcwd() . '/mysite';
|
||||
$projectPath = getcwd() . '/app';
|
||||
}
|
||||
if (!is_dir($projectPath)) {
|
||||
mkdir($projectPath, 02775);
|
Loading…
Reference in New Issue
Block a user