Files
Andras Bacsai 93c7e53e9f test: remove tests that only check UI copy and markup
Mixed tests keep their behavior checks. Also fix two stale tests: the runtime logs tests set a locked property, and the registry test identifies the instance database by id 0.
2026-11-12 12:39:53 +01:00

23 lines
616 B
PHP

<?php
use App\Models\InstanceSettings;
use App\Models\Team;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
uses(RefreshDatabase::class);
beforeEach(function () {
InstanceSettings::unguarded(fn () => InstanceSettings::query()->create(['id' => 0]));
$user = User::factory()->create();
$team = Team::factory()->create();
$user->teams()->attach($team, ['role' => 'owner']);
$this->actingAs($user);
session(['currentTeam' => $team]);
$this->team = $team;
});
it('registers the metrics route', function () {
expect(route('metrics'))->toEndWith('/metrics');
});