actingAs($this->user); /** @var ServerLog $lastLog */ $lastLog = ServerLog::factory()->create([ 'server_id' => $this->server->id, 'site_id' => $this->site->id, ]); $this->get( Index::getUrl([ 'server' => $this->server, 'site' => $this->site, ]) ) ->assertSuccessful() ->assertSee($lastLog->name); } }