akaunting/tests/TestCase.php

20 lines
434 B
PHP
Raw Permalink Normal View History

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