adrema/modules/Contribution/Components/FillListTest.php

25 lines
515 B
PHP

<?php
namespace Modules\Contribution\Components;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Livewire\Livewire;
uses(TestCase::class);
uses(DatabaseTransactions::class);
beforeEach(function () {
test()->login()->loginNami();
});
it('displays page', function () {
test()->get(route('contribution.index'))
->assertSeeLivewire(FillList::class);
});
it('loads component', function () {
Livewire::test(FillList::class)
->assertSee('Zuschüsse');
});