akaunting/tests/TestCase.php

22 lines
564 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;
2018-10-01 07:36:01 +00:00
use Artisan;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
2017-09-14 19:21:00 +00:00
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
2019-11-17 12:06:00 +00:00
use CreatesApplication, DatabaseMigrations, Jobs;
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();
Artisan::call('db:seed', ['--class' => '\Database\Seeds\TestCompany', '--force' => true]);
2018-10-01 10:22:55 +00:00
Artisan::call('company:seed', ['company' => 1]);
2018-10-01 07:36:01 +00:00
}
}