Skip to content

Commit 36c1561

Browse files
committed
Move and update Context tests to tests/Log/
Move all PropagatedContext tests from tests/Context/ to tests/Log/, matching the package they now test. Rename test files and classes to reflect the new Repository/Context naming. Update all imports, access patterns, and payload key references. - PropagatedContextTest → ContextTest - PropagatedContextCoroutineTest → ContextCoroutineTest - PropagatedContextLogTest → ContextLogProcessorTest - PropagatedContextQueueTest → ContextQueueTest - ContextPropagatedTest → ContextInstanceTest - PropagatedContextIntegrationTest → ContextIntegrationTest (Integration/Log/) - LogManagerTest: update ContextLogProcessor import - CallQueuedHandlerTest: update context access - AfterEachTestSubscriber: update flushState reference
1 parent 036f4eb commit 36c1561

13 files changed

+646
-646
lines changed

tests/AfterEachTestSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public function notify(Finished $event): void
4444
\Hypervel\Container\BoundMethod::flushMethodRecipeCache();
4545
\Hypervel\Container\Container::setInstance(null);
4646
\Hypervel\Context\CoroutineContext::flush();
47-
\Hypervel\Context\PropagatedContext::flushState();
4847
\Hypervel\Cookie\Middleware\EncryptCookies::flushState();
4948
\Hypervel\Coroutine\Coroutine::flushAfterCreated();
5049
\Hypervel\Database\Console\Migrations\FreshCommand::prohibit(false);
@@ -100,6 +99,7 @@ public function notify(Finished $event): void
10099
\Hypervel\Http\Middleware\TrustProxies::flushState();
101100
\Hypervel\Http\Resources\Json\JsonResource::flushState();
102101
\Hypervel\Http\Resources\JsonApi\JsonApiResource::flushState();
102+
\Hypervel\Log\Context\Repository::flushState();
103103
\Hypervel\Mail\Attachment::flushState();
104104
\Hypervel\Mail\Mailer::flushState();
105105
\Hypervel\Mail\Markdown::flushState();

tests/Context/ContextPropagatedTest.php

Lines changed: 0 additions & 92 deletions
This file was deleted.

tests/Context/PropagatedContextCoroutineTest.php

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)