akaunting/tests/TestCase.php

20 lines
434 B
PHP
Raw Normal View History

2017-09-14 19:21:00 +00:00
<?php
namespace Tests;
2019-11-17 12:06:00 +00:00
use App\Traits\Jobs;
2021-09-29 22:23:20 +00:00
use Illuminate\Foundation\Testing\RefreshDatabase;
2017-09-14 19:21:00 +00:00
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
2021-09-29 22:23:20 +00:00
use CreatesApplication, Jobs, RefreshDatabase;
2018-10-01 07:36:01 +00:00
2019-11-16 07:21:14 +00:00
protected function setUp(): void
2018-10-01 07:36:01 +00:00
{
parent::setUp();
2021-09-29 22:23:20 +00:00
$this->artisan('db:seed', ['--class' => '\Database\Seeds\TestCompany', '--force' => true]);
2018-10-01 07:36:01 +00:00
}
2020-03-14 20:38:54 +00:00
}