ORIENT/tests/TestCase.php

26 lines
601 B
PHP
Raw Normal View History

2014-05-14 13:24:20 +00:00
<?php
2015-02-09 10:51:26 +00:00
class TestCase extends Illuminate\Foundation\Testing\TestCase
2014-05-14 13:24:20 +00:00
{
/**
* Creates the application.
*
2015-02-09 10:51:26 +00:00
* @return \Illuminate\Foundation\Application
2014-05-14 13:24:20 +00:00
*/
public function createApplication()
{
2015-02-09 10:51:26 +00:00
$app = require __DIR__.'/../bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
2014-05-14 13:24:20 +00:00
2015-02-10 06:45:27 +00:00
$app['cache']->setDefaultDriver('array');
2014-05-14 13:24:20 +00:00
2015-02-09 10:51:26 +00:00
$app->setLocale('en');
$app->setPluginsPath(base_path().'/tests/fixtures/plugins');
$app->setThemesPath(base_path().'/tests/fixtures/themes');
2014-05-14 13:24:20 +00:00
2015-02-09 10:51:26 +00:00
return $app;
2014-05-14 13:24:20 +00:00
}
}