fanatic/tests/Feature/Joined/IndexTest.php

16 lines
392 B
PHP
Raw Permalink Normal View History

2022-04-25 19:50:01 -07:00
<?php
use App\Models\Collective;
2022-04-27 18:41:16 -07:00
uses()->group('joined', 'admin');
2022-04-25 19:50:01 -07:00
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');
2022-04-27 18:41:16 -07:00
});