fixed tests
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2022-11-17 02:23:46 +01:00
parent bea3e493fc
commit c2ae800515
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ class AgeGroupCountBlockTest extends TestCase
->defaults()
->create();
$data = app(AgeGroupCountBlock::class)->render();
$data = app(AgeGroupCountBlock::class)->render()['data'];
$this->assertEquals([
'groups' => [

View File

@ -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' => [

View File

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