aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/App/AppStore/Version/VersionTest.php
blob: 68da79fdc8df731e5af6618e43304e11f53e0df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

namespace Test\App\AppStore\Version;

use OC\App\AppStore\Version\Version;
use Test\TestCase;

class VersionTest extends TestCase {
	public function testGetMinimumVersion() {
		$version = new Version('9', '10');
		$this->assertSame('9', $version->getMinimumVersion());
	}

	public function testGetMaximumVersion() {
		$version = new Version('9', '10');
		$this->assertSame('10', $version->getMaximumVersion());
	}
}