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