assertRedirect(route('dashboard')) ->assertSessionHas('error', 'You are not authorized to perform this action'); }); it('ignores requests from tabulation users', function () { // Arrange actAsTab(); get(route('admin.signInSheets.index')) ->assertRedirect(route('dashboard')) ->assertSessionHas('error', 'You are not authorized to perform this action'); });