Skip to content

Commit

Permalink
doc: add section about kernel booted once
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed May 26, 2024
1 parent 29f8893 commit 6c1b995
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/caveats.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ when@test:
framework:
test: true
```

## LogicException: […] the kernel should only be booted once.

Complete error message:

> LogicException: Booting the kernel before calling "Symfony\Bundle\FrameworkBundle\Test\WebTestCase::createClient()" is not supported, the kernel should only be booted once.

Solution: Call `self::ensureKernelShutdown();` before creating the client.

0 comments on commit 6c1b995

Please sign in to comment.