the browser-facing portion of osu!
at master 683 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6declare(strict_types=1); 7 8namespace Tests\Controllers; 9 10use App\Models\Forum\Forum; 11use Tests\TestCase; 12 13class ForumForumsControllerTest extends TestCase 14{ 15 public function testIndex(): void 16 { 17 $this 18 ->get(route('forum.forums.index')) 19 ->assertStatus(200); 20 } 21 22 public function testShow(): void 23 { 24 $forum = Forum::factory()->create(); 25 26 $this 27 ->get(route('forum.forums.show', $forum)) 28 ->assertStatus(200); 29 } 30}