mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes unit tests for case sensitive file systems
We should be using the class compiler here eventually
This commit is contained in:
parent
dcdd2056e8
commit
408c06a33f
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="bootstrap/autoload.php"
|
||||
bootstrap="tests/bootstrap.php"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
|
@ -10,7 +10,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$app = require_once __DIR__.'/../bootstrap/autoload.php';
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
|
||||
|
||||
|
15
tests/bootstrap.php
Normal file
15
tests/bootstrap.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* October autoloader
|
||||
*/
|
||||
require __DIR__ . '/../bootstrap/autoload.php';
|
||||
|
||||
/*
|
||||
* Fallback autoloader
|
||||
*/
|
||||
October\Rain\Support\ClassLoader::register();
|
||||
October\Rain\Support\ClassLoader::addDirectories([
|
||||
__DIR__.'/../modules',
|
||||
__DIR__.'/../plugins'
|
||||
]);
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="../../bootstrap/autoload.php"
|
||||
bootstrap="../bootstrap.php"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user