added bundles and storage directory to dummy laravel test setup.
This commit is contained in:
@@ -16,7 +16,10 @@ if ( ! isset($web)) $web = false;
|
|||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Define the directory separator for the environment.
|
// Define the directory separator for the environment.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
if ( ! defined('DS'))
|
||||||
|
{
|
||||||
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Define the path to the base directory.
|
// Define the path to the base directory.
|
||||||
@@ -67,7 +70,7 @@ foreach ($paths as $name => $path)
|
|||||||
{
|
{
|
||||||
if ( ! defined($name))
|
if ( ! defined($name))
|
||||||
{
|
{
|
||||||
$path = ($web) ? '../'.$path : $path;
|
if ($web) $path = "../{$path}";
|
||||||
|
|
||||||
define($name, realpath($path).DS);
|
define($name, realpath($path).DS);
|
||||||
}
|
}
|
||||||
|
|||||||
13
phpunit.php
13
phpunit.php
@@ -9,13 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Override the application path if testing Laravel.
|
// Define the directory separator for the environment.
|
||||||
|
// --------------------------------------------------------------
|
||||||
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
|
|
||||||
|
// --------------------------------------------------------------
|
||||||
|
// Override the framework paths if testing Laravel.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
foreach ($_SERVER['argv'] as $key => $argument)
|
foreach ($_SERVER['argv'] as $key => $argument)
|
||||||
{
|
{
|
||||||
if ($argument == 'laravel' and $_SERVER['argv'][$key - 1] == '--group')
|
if ($argument == 'laravel' and $_SERVER['argv'][$key - 1] == '--group')
|
||||||
{
|
{
|
||||||
define('APP_PATH', realpath('tests/laravel').DIRECTORY_SEPARATOR);
|
define('APP_PATH', realpath('tests/laravel/application').DS);
|
||||||
|
|
||||||
|
define('BUNDLE_PATH', realpath('tests/laravel/bundles').DS);
|
||||||
|
|
||||||
|
define('STORAGE_PATH', realpath('tests/laravel/storage').DS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
0
tests/laravel/bundles/.gitignore
vendored
Normal file
0
tests/laravel/bundles/.gitignore
vendored
Normal file
0
tests/laravel/storage/cache/.gitignore
vendored
Normal file
0
tests/laravel/storage/cache/.gitignore
vendored
Normal file
1
tests/laravel/storage/database/.gitignore
vendored
Normal file
1
tests/laravel/storage/database/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.sqlite
|
||||||
0
tests/laravel/storage/logs/.gitignore
vendored
Normal file
0
tests/laravel/storage/logs/.gitignore
vendored
Normal file
0
tests/laravel/storage/sessions/.gitignore
vendored
Normal file
0
tests/laravel/storage/sessions/.gitignore
vendored
Normal file
0
tests/laravel/storage/views/.gitignore
vendored
Normal file
0
tests/laravel/storage/views/.gitignore
vendored
Normal file
Reference in New Issue
Block a user