'Applying all replaced migrations marks replacement as applied (#24628).'

@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_squashed'})
def test_apply_all_replaced_marks_replacement_as_applied(self):

    recorder = MigrationRecorder(connection)
    recorder.record_applied('migrations', '0001_initial')
    executor = MigrationExecutor(connection)
    executor.migrate([('migrations', '0002_second')], fake=True)
    self.assertIn(('migrations', '0001_squashed_0002'), recorder.applied_migrations())
