fanatic/tests/Feature/Joined/IndexTest.php
Marley Rae ec631823b9 testin
2022-04-25 19:50:01 -07:00

13 lines
No EOL
356 B
PHP

<?php
use App\Models\Collective;
it('gets joined index', function () {
$response = $this->actingAs(Collective::first())->get('/fanatic/joined');
$response->assertViewIs('admin.joined.index');
});
it('does not show index to guests', function () {
$response = $this->get('/fanatic/joined');
$response->assertRedirect('/fanatic/login');
});