15 lines
392 B
PHP
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');
|
|
});
|