down(); $team = Team::factory()->create(); $highlight = Server::factory()->create(['team_id' => $team->id]); $transferred = Server::factory()->create(['team_id' => $team->id, 'server_metadata' => ['transfer' => ['status' => 'transferred']]]); Server::factory()->create(['team_id' => $team->id]); DB::table('server_settings')->whereIn('server_id', [$highlight->id, $transferred->id])->update(['is_logdrain_highlight_enabled' => true]); $migration->up(); StopLogDrain::assertPushed(1); StopLogDrain::assertPushed(fn (StopLogDrain $action, array $arguments) => $arguments[0]->is($highlight)); expect(Schema::hasColumn('server_settings', 'is_logdrain_highlight_enabled'))->toBeFalse() ->and(Schema::hasColumn('server_settings', 'logdrain_highlight_project_id'))->toBeFalse(); });