You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,16 @@ This document provides guidance for upgrading between major versions of Lighthou
7
7
The configuration options often change between major versions.
8
8
Compare your `lighthouse.php` against the latest [default configuration](src/lighthouse.php).
9
9
10
+
## v6 to v7
11
+
12
+
### Leverage automatic test trait setup
13
+
14
+
Methods you need to explicitly call to set up test traits were removed in favor of automatically set up test traits.
15
+
Keep in mind they only work when your test class extends `Illuminate\Foundation\Testing\TestCase`.
16
+
17
+
- Just remove calls to `Nuwave\Lighthouse\Testing\RefreshesSchemaCache::bootRefreshesSchemaCache()`.
18
+
- Replace calls to `Nuwave\Lighthouse\Testing\MakesGraphQLRequests::setUpSubscriptionEnvironment()` with ` use Nuwave\Lighthouse\Testing\TestsSubscriptions`.
0 commit comments