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 €',