Fixed tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-08-30 21:06:16 +02:00
parent 76e7b06630
commit e3b52bf901
2 changed files with 14 additions and 3 deletions

View File

@ -3,6 +3,7 @@
namespace Tests\Feature\Member;
use App\Activity;
use App\Country;
use App\Member\Member;
use App\Subactivity;
use Illuminate\Foundation\Testing\DatabaseTransactions;
@ -12,6 +13,12 @@ class EditTest extends TestCase
{
use DatabaseTransactions;
public function setUp(): void
{
parent::setUp();
Country::factory()->create(['name' => 'Deutschland']);
}
public function testItDisplaysEditPage(): void
{
$this->withoutExceptionHandling();

View File

@ -2,9 +2,9 @@
namespace Tests\Feature\Member;
use App\Country;
use App\Course\Models\Course;
use App\Course\Models\CourseMember;
use App\Fee;
use App\Gender;
use App\Group;
use App\Invoice\Models\Invoice;
@ -12,19 +12,23 @@ use App\Invoice\Models\InvoicePosition;
use App\Member\Member;
use App\Member\Membership;
use App\Nationality;
use App\Payment\Payment;
use App\Payment\Subscription;
use App\Region;
use Carbon\Carbon;
use Generator;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\RequestFactories\Child;
use Tests\TestCase;
class ShowTest extends TestCase
{
use DatabaseTransactions;
public function setUp(): void
{
parent::setUp();
Country::factory()->create(['name' => 'Deutschland']);
}
public function testItShowsSingleMember(): void
{
Carbon::setTestNow(Carbon::parse('2006-01-01 15:00:00'));