Compare commits
2 Commits
b28525be7c
...
71da52791d
Author | SHA1 | Date |
---|---|---|
|
71da52791d | |
|
946a6c93b2 |
|
@ -177,20 +177,6 @@ class IndexTest extends TestCase
|
||||||
], $response, 'data.data.0.memberships.0');
|
], $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
|
public function testItReturnsPayments(): void
|
||||||
{
|
{
|
||||||
$this->withoutExceptionHandling()->login()->loginNami();
|
$this->withoutExceptionHandling()->login()->loginNami();
|
||||||
|
|
|
@ -23,15 +23,10 @@ class ShowTest extends TestCase
|
||||||
{
|
{
|
||||||
use DatabaseTransactions;
|
use DatabaseTransactions;
|
||||||
|
|
||||||
public function setUp(): void
|
|
||||||
{
|
|
||||||
parent::setUp();
|
|
||||||
|
|
||||||
Carbon::setTestNow(Carbon::parse('2006-01-01 15:00:00'));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testItShowsSingleMember(): void
|
public function testItShowsSingleMember(): void
|
||||||
{
|
{
|
||||||
|
Carbon::setTestNow(Carbon::parse('2006-01-01 15:00:00'));
|
||||||
|
|
||||||
$this->withoutExceptionHandling()->login()->loginNami();
|
$this->withoutExceptionHandling()->login()->loginNami();
|
||||||
$member = Member::factory()
|
$member = Member::factory()
|
||||||
->defaults()
|
->defaults()
|
||||||
|
|
Loading…
Reference in New Issue