fixed tests
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bea3e493fc
commit
c2ae800515
|
@ -27,7 +27,7 @@ class AgeGroupCountBlockTest extends TestCase
|
|||
->defaults()
|
||||
->create();
|
||||
|
||||
$data = app(AgeGroupCountBlock::class)->render();
|
||||
$data = app(AgeGroupCountBlock::class)->render()['data'];
|
||||
|
||||
$this->assertEquals([
|
||||
'groups' => [
|
||||
|
|
|
@ -21,7 +21,7 @@ class TestersBlockTest extends TestCase
|
|||
->has(Membership::factory()->in('Schnuppermitgliedschaft', 7, 'Wölfling', 8)->state(['created_at' => now()->subMonths(10)]))
|
||||
->create(['firstname' => 'Max', 'lastname' => 'Muster']);
|
||||
|
||||
$data = app(TestersBlock::class)->render();
|
||||
$data = app(TestersBlock::class)->render()['data'];
|
||||
|
||||
$this->assertEquals([
|
||||
'members' => [
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Payment\Payment;
|
|||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Tests\TestCase;
|
||||
|
||||
class TestersBlockTest extends TestCase
|
||||
class MemberPaymentsBlockTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
|
@ -24,7 +24,7 @@ class TestersBlockTest extends TestCase
|
|||
->defaults()
|
||||
->create();
|
||||
|
||||
$data = app(MemberPaymentBlock::class)->render();
|
||||
$data = app(MemberPaymentBlock::class)->render()['data'];
|
||||
|
||||
$this->assertEquals([
|
||||
'amount' => '34,00 €',
|
Loading…
Reference in New Issue