Compare commits

...

2 Commits

Author SHA1 Message Date
philipp lang 71da52791d Fixed date in member ShowTest
continuous-integration/drone/push Build is passing Details
2023-09-06 23:45:13 +02:00
philipp lang 946a6c93b2 Fixed tests 2023-09-06 23:45:03 +02:00
2 changed files with 2 additions and 21 deletions

View File

@ -177,20 +177,6 @@ class IndexTest extends TestCase
], $response, 'data.data.0.memberships.0');
}
public function testItDoesntShowEndedMemberships(): void
{
$this->withoutExceptionHandling()->login()->loginNami();
$group = Group::factory()->create();
$member = Member::factory()
->defaults()
->has(Membership::factory()->for($group)->in('€ Mitglied', 122, 'Wölfling', 234)->ended())
->create();
$response = $this->get('/member');
$this->assertCount(0, $this->inertia($response, 'data.data.0.memberships'));
}
public function testItReturnsPayments(): void
{
$this->withoutExceptionHandling()->login()->loginNami();

View File

@ -23,15 +23,10 @@ class ShowTest extends TestCase
{
use DatabaseTransactions;
public function setUp(): void
{
parent::setUp();
Carbon::setTestNow(Carbon::parse('2006-01-01 15:00:00'));
}
public function testItShowsSingleMember(): void
{
Carbon::setTestNow(Carbon::parse('2006-01-01 15:00:00'));
$this->withoutExceptionHandling()->login()->loginNami();
$member = Member::factory()
->defaults()