Skip to content

Commit

Permalink
Merge pull request #311 from alexislefebvre/doc-add-section-about-ker…
Browse files Browse the repository at this point in the history
…nel-booted-once

doc: add section about kernel booted once
  • Loading branch information
alexislefebvre authored May 26, 2024
2 parents 29f8893 + 6c1b995 commit a3a5e84
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 a3a5e84

Please sign in to comment.