From c2ae8005157a029707f97d0614e9fd29837120cf Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 17 Nov 2022 02:23:46 +0100 Subject: [PATCH] fixed tests --- tests/Feature/Membership/AgeGroupCountBlockTest.php | 2 +- tests/Feature/Membership/TestersBlockTest.php | 2 +- .../{TestersBlockTest.php => MemberPaymentsBlockTest.php} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename tests/Feature/Payment/{TestersBlockTest.php => MemberPaymentsBlockTest.php} (86%) diff --git a/tests/Feature/Membership/AgeGroupCountBlockTest.php b/tests/Feature/Membership/AgeGroupCountBlockTest.php index ff037cf1..fe83f298 100644 --- a/tests/Feature/Membership/AgeGroupCountBlockTest.php +++ b/tests/Feature/Membership/AgeGroupCountBlockTest.php @@ -27,7 +27,7 @@ class AgeGroupCountBlockTest extends TestCase ->defaults() ->create(); - $data = app(AgeGroupCountBlock::class)->render(); + $data = app(AgeGroupCountBlock::class)->render()['data']; $this->assertEquals([ 'groups' => [ diff --git a/tests/Feature/Membership/TestersBlockTest.php b/tests/Feature/Membership/TestersBlockTest.php index 3440cf25..91ddf4f7 100644 --- a/tests/Feature/Membership/TestersBlockTest.php +++ b/tests/Feature/Membership/TestersBlockTest.php @@ -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' => [ diff --git a/tests/Feature/Payment/TestersBlockTest.php b/tests/Feature/Payment/MemberPaymentsBlockTest.php similarity index 86% rename from tests/Feature/Payment/TestersBlockTest.php rename to tests/Feature/Payment/MemberPaymentsBlockTest.php index d72fb78e..b3bfa4c3 100644 --- a/tests/Feature/Payment/TestersBlockTest.php +++ b/tests/Feature/Payment/MemberPaymentsBlockTest.php @@ -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 €',