VersionTest.php 563 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace Test\App\AppStore\Version;
  7. use OC\App\AppStore\Version\Version;
  8. use Test\TestCase;
  9. class VersionTest extends TestCase {
  10. public function testGetMinimumVersion(): void {
  11. $version = new Version('9', '10');
  12. $this->assertSame('9', $version->getMinimumVersion());
  13. }
  14. public function testGetMaximumVersion(): void {
  15. $version = new Version('9', '10');
  16. $this->assertSame('10', $version->getMaximumVersion());
  17. }
  18. }