Skip to content

Commit b2dae69

Browse files
fix(test): ApplicationTest: preserve server instance
otherwise it will break tests which rely on config object Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
1 parent f284f91 commit b2dae69

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/unit/AppInfo/ApplicationTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ protected function setUp(): void {
3131
$this->app->register($coordinator->getRegistrationContext()->for('nc_theming'));
3232

3333
$this->context = $this->createMock(IRegistrationContext::class);
34+
35+
$this->serverOriginal = \OC::$server;
36+
}
37+
38+
protected function tearDown(): void {
39+
parent::tearDown();
40+
\OC::$server = $this->serverOriginal;
3441
}
3542

3643
public function testThemingOverrideRegistration(): void {

0 commit comments

Comments
 (0)