1
0

EnvironmentHelperTest.php 776 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace Test\IntegrityCheck\Helpers;
  8. use OC\IntegrityCheck\Helpers\EnvironmentHelper;
  9. use Test\TestCase;
  10. class EnvironmentHelperTest extends TestCase {
  11. /** @var EnvironmentHelper */
  12. private $environmentHelper;
  13. protected function setUp(): void {
  14. $this->environmentHelper = new EnvironmentHelper();
  15. parent::setUp();
  16. }
  17. public function testGetServerRoot(): void {
  18. $this->assertSame(\OC::$SERVERROOT, $this->environmentHelper->getServerRoot());
  19. }
  20. public function testGetChannel(): void {
  21. $this->assertSame(\OC_Util::getChannel(), $this->environmentHelper->getChannel());
  22. }
  23. }