fanatic/tests/Feature/Owned/IndexTest.php

18 lines
381 B
PHP
Raw Normal View History

2022-04-27 18:41:16 -07:00
<?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');
});