Skip to content

Commit

Permalink
fix: run router test with runTestsInSeparateProcesses
Browse files Browse the repository at this point in the history
The router uses include_once to load route definitions from the apps.

First include_once for apps/files/appinfo/routes.php returns the expected array.

Second include_once returns true, because the file was already included.

To workaround the tests must run in a separate process.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Jul 10, 2024
1 parent 82f9c66 commit b5cf099
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lib/Route/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* Class RouterTest
*
* @group RoutingWeirdness
* @runTestsInSeparateProcesses
*
* @package Test\Route
*/
Expand Down

0 comments on commit b5cf099

Please sign in to comment.