bootProviders static method
Register providers and boot them in the order Magic.init does.
Every register() runs first, in list order, then every boot(), in the
same order, so a provider booting late can resolve what an earlier one
bound. Unlike boot it loads no env file and no config, which is what a
widget test wants when it needs a handful of real providers and nothing
else. Pair it with disposeBooted in tearDown.
Implementation
static Future<void> bootProviders(List<ServiceProvider> providers) async {
for (final provider in providers) {
await Magic.register(provider);
}
await Magic.boot();
}