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

17 lines
381 B
PHP

<?php
use App\Models\Collective;
uses()->group('owned', 'admin');
it('has index page', function () {
$response = $this->actingAs(Collective::first())->get('/fanatic/owned');
$response->assertViewIs('admin.owned.index');
});
it('hides index from guests', function () {
$response = $this->get('/fanatic/owned');
$response->assertRedirect('/fanatic/login');
});