Files
nl-admin-api/tests/TestCase.php

31 lines
606 B
PHP
Raw Normal View History

2013-01-11 15:14:07 -06:00
<?php
2016-11-29 15:48:33 -06:00
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
2015-02-22 20:47:03 -06:00
{
2015-05-06 16:58:00 -05:00
/**
* The base URL to use while testing the application.
*
* @var string
*/
protected $baseUrl = 'http://localhost';
2015-02-22 20:47:03 -06:00
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
2016-11-29 15:48:33 -06:00
$app->make(Kernel::class)->bootstrap();
2013-01-11 15:14:07 -06:00
2015-02-22 20:47:03 -06:00
return $app;
}
}