test: run tests in child process

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2024-07-10 22:48:53 +02:00
parent d7ea479a33
commit ee65749138
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -59,10 +59,18 @@ class RouterTest extends TestCase {
);
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testHeartbeat(): void {
$this->assertEquals('/index.php/heartbeat', $this->router->generate('heartbeat'));
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testGenerateConsecutively(): void {
$this->assertEquals('/index.php/apps/files/', $this->router->generate('files.view.index'));