Merge pull request #46430 from nextcloud/bug/noid/fix-wonky-router-test-for-28

[stable28] test: run tests in child process
This commit is contained in:
Andy Scherzinger 2024-07-11 09:26:39 +02:00 committed by GitHub
commit e9b18f78a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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'));