diff --git a/config/app.php b/config/app.php index 0fb18e81..8c42c9e1 100644 --- a/config/app.php +++ b/config/app.php @@ -186,6 +186,7 @@ return [ Modules\Auth\AuthServiceProvider::class, Modules\Form\FormServiceProvider::class, Modules\Fileshare\FileshareServiceProvider::class, + Modules\Contribution\ContributionServiceProvider::class, ], /* diff --git a/modules/Contribution/Components/FillList.php b/modules/Contribution/Components/FillList.php new file mode 100644 index 00000000..625dd14e --- /dev/null +++ b/modules/Contribution/Components/FillList.php @@ -0,0 +1,16 @@ + + + HTML; + } +} diff --git a/modules/Contribution/Components/FillListTest.php b/modules/Contribution/Components/FillListTest.php new file mode 100644 index 00000000..609f3fa8 --- /dev/null +++ b/modules/Contribution/Components/FillListTest.php @@ -0,0 +1,24 @@ +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'); +}); diff --git a/modules/Contribution/ContributionServiceProvider.php b/modules/Contribution/ContributionServiceProvider.php new file mode 100644 index 00000000..342edd98 --- /dev/null +++ b/modules/Contribution/ContributionServiceProvider.php @@ -0,0 +1,31 @@ +middleware(['web', 'auth:web'])->group(function ($router) { + $router->get('/contribution', FillList::class)->name('contribution.index'); + }); + } +}