diff --git a/aio/content/guide/deprecations.md b/aio/content/guide/deprecations.md index c6fc6547d8..19d092ce51 100644 --- a/aio/content/guide/deprecations.md +++ b/aio/content/guide/deprecations.md @@ -29,6 +29,7 @@ v5 - v8 v6 - v9 v7 - v10 v8 - v11 +v9 - v12 --> @@ -51,6 +52,7 @@ v8 - v11 | `@angular/core` | [`defineInjectable`](#core) | v11 | | `@angular/router` | [`loadChildren` string syntax](#loadChildren) | v11 | | `@angular/router` | [`ActivatedRoute` params and `queryParams` properties](#activatedroute-props) | unspecified | +| `@angular/core/testing` | [`TestBed.get`](#testing) | v12 | @@ -86,6 +88,14 @@ Tip: In the [API reference section](api) of this doc site, deprecated APIs are i | [`ANALYZE_FOR_ENTRY_COMPONENTS`](api/core/ANALYZE_FOR_ENTRY_COMPONENTS) | none | v9 | See [`ANALYZE_FOR_ENTRY_COMPONENTS`](#entryComponents) | +{@a testing} +### @angular/core/testing + +| API | Replacement | Deprecation announced | Notes | +| --- | ----------- | --------------------- | ----- | +| [`TestBed.get`](api/core/testing/TestBed#get) | [`TestBed.inject`](api/core/testing/TestBed#inject) | v9 | Same behavior, but type safe. | + + {@a forms} ### @angular/forms diff --git a/aio/content/guide/testing.md b/aio/content/guide/testing.md index 6ee6846330..40075f6edb 100644 --- a/aio/content/guide/testing.md +++ b/aio/content/guide/testing.md @@ -357,11 +357,15 @@ array of the services that you'll test or mock. Then inject it inside a test by calling `TestBed.inject()` with the service class as the argument. +
get
+ {@a testbed-inject}
+ inject