refactor(testing): remove deprecated test setup functions (#10600)
Remove test setup functions which were deprecated in rc5. See the changelog for rc5 for how to update. In brief, instead of `setBaseTestProviders`, use `TestBed.initTestEnvironment`.
This commit is contained in:

committed by
Alex Rickabaugh

parent
ebcd14f8e9
commit
d75502eeee
@ -28,23 +28,6 @@ function createNgZone(): NgZone {
|
||||
const _TEST_BROWSER_PLATFORM_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
|
||||
[{provide: PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true}];
|
||||
|
||||
/**
|
||||
* Providers for the browser test platform
|
||||
*
|
||||
* @deprecated Use `platformBrowserTesting()` or create a custom platform factory via
|
||||
* `createPlatformFactory(platformBrowserTesting, ...)`
|
||||
*/
|
||||
export const TEST_BROWSER_PLATFORM_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
|
||||
[PLATFORM_COMMON_PROVIDERS, _TEST_BROWSER_PLATFORM_PROVIDERS];
|
||||
|
||||
/**
|
||||
* @deprecated Use initTestEnvironment with BrowserTestModule instead. This is empty for backwards
|
||||
* compatibility,
|
||||
* as all of our bootstrap methods add a module implicitly, i.e. keeping this filled would add the
|
||||
* providers 2x.
|
||||
*/
|
||||
export const TEST_BROWSER_APPLICATION_PROVIDERS: Array<any /*Type | Provider | any[]*/> = [];
|
||||
|
||||
/**
|
||||
* Platform for testing
|
||||
*
|
||||
@ -53,11 +36,6 @@ export const TEST_BROWSER_APPLICATION_PROVIDERS: Array<any /*Type | Provider | a
|
||||
export const platformBrowserTesting =
|
||||
createPlatformFactory(platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link platformBrowserTesting} instead
|
||||
*/
|
||||
export const browserTestingPlatform = platformBrowserTesting;
|
||||
|
||||
/**
|
||||
* NgModule for testing.
|
||||
*
|
||||
|
Reference in New Issue
Block a user