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()
|
->defaults()
|
||||||
->create();
|
->create();
|
||||||
|
|
||||||
$data = app(AgeGroupCountBlock::class)->render();
|
$data = app(AgeGroupCountBlock::class)->render()['data'];
|
||||||
|
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
'groups' => [
|
'groups' => [
|
||||||
|
|
|
@ -21,7 +21,7 @@ class TestersBlockTest extends TestCase
|
||||||
->has(Membership::factory()->in('Schnuppermitgliedschaft', 7, 'Wölfling', 8)->state(['created_at' => now()->subMonths(10)]))
|
->has(Membership::factory()->in('Schnuppermitgliedschaft', 7, 'Wölfling', 8)->state(['created_at' => now()->subMonths(10)]))
|
||||||
->create(['firstname' => 'Max', 'lastname' => 'Muster']);
|
->create(['firstname' => 'Max', 'lastname' => 'Muster']);
|
||||||
|
|
||||||
$data = app(TestersBlock::class)->render();
|
$data = app(TestersBlock::class)->render()['data'];
|
||||||
|
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
'members' => [
|
'members' => [
|
||||||
|
|
|
@ -8,7 +8,7 @@ use App\Payment\Payment;
|
||||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class TestersBlockTest extends TestCase
|
class MemberPaymentsBlockTest extends TestCase
|
||||||
{
|
{
|
||||||
use DatabaseTransactions;
|
use DatabaseTransactions;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class TestersBlockTest extends TestCase
|
||||||
->defaults()
|
->defaults()
|
||||||
->create();
|
->create();
|
||||||
|
|
||||||
$data = app(MemberPaymentBlock::class)->render();
|
$data = app(MemberPaymentBlock::class)->render()['data'];
|
||||||
|
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
'amount' => '34,00 €',
|
'amount' => '34,00 €',
|
Loading…
Reference in New Issue