
[smarcet] - #5037 - Authentication Integration with OpenID custom Idp Change-Id: Ifb704254fa7274b169eb858a2596c9e5651ac76e
47 lines
890 B
PHP
47 lines
890 B
PHP
<?php
|
|
|
|
class TestCase extends Illuminate\Foundation\Testing\TestCase {
|
|
|
|
private $redis;
|
|
|
|
public function __construct(){
|
|
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp(); // Don't forget this!
|
|
$this->redis = \RedisLV4::connection();
|
|
$this->redis->flushall();
|
|
$this->prepareForTests();
|
|
}
|
|
|
|
|
|
/**
|
|
* Migrates the database and set the mailer to 'pretend'.
|
|
* This will cause the tests to run quickly.
|
|
*
|
|
*/
|
|
protected function prepareForTests()
|
|
{
|
|
Artisan::call('migrate');
|
|
Mail::pretend(true);
|
|
$this->seed('TestSeeder');
|
|
}
|
|
|
|
/**
|
|
* Creates the application.
|
|
*
|
|
* @return Symfony\Component\HttpKernel\HttpKernelInterface
|
|
*/
|
|
public function createApplication()
|
|
{
|
|
$unitTesting = true;
|
|
|
|
$testEnvironment = 'testing';
|
|
|
|
return require __DIR__.'/../../bootstrap/start.php';
|
|
}
|
|
|
|
}
|