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: http-tests.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,50 @@ class ExampleTest extends TestCase
96
96
97
97
In general, each of your tests should only make one request to your application. Unexpected behavior may occur if multiple requests are executed within a single test method.
98
98
99
+
> [!NOTE]
100
+
> If you need to perform multiple requests to compare different endpoints within a single test, you should manually reboot the application between requests to ensure a clean state.
101
+
102
+
You may use the `refreshApplication` method to reset the service container and application state during a test:
103
+
104
+
```php tab=Pest
105
+
<?php
106
+
107
+
test('parity between legacy and new endpoints', function () {
0 commit comments