fanatic/tests/Feature/Joined/IndexTest.php
Marley Rae 259ebe827c tests
2022-04-27 18:41:16 -07:00

15 lines
392 B
PHP

<?php
use App\Models\Collective;
uses()->group('joined', 'admin');
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');
});