prepareDatabase([ 'users' => [ $this->normalUser(), ], ]); } /** * @test * @expectedException \Flarum\User\Exception\PermissionDeniedException */ public function disallows_index_for_guest() { $this->callWith(); } /** * @test */ public function show_index_for_user() { $this->actor = User::find(2); $response = $this->callWith(); $this->assertEquals(200, $response->getStatusCode()); } }