aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php')
-rw-r--r--tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php b/tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php
new file mode 100644
index 00000000000..caa5ed2e782
--- /dev/null
+++ b/tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+namespace Test\IntegrityCheck\Helpers;
+
+use OC\IntegrityCheck\Helpers\EnvironmentHelper;
+use Test\TestCase;
+
+class EnvironmentHelperTest extends TestCase {
+ /** @var EnvironmentHelper */
+ private $environmentHelper;
+
+ protected function setUp(): void {
+ $this->environmentHelper = new EnvironmentHelper();
+ parent::setUp();
+ }
+
+ public function testGetServerRoot(): void {
+ $this->assertSame(\OC::$SERVERROOT, $this->environmentHelper->getServerRoot());
+ }
+}