You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/tests/lib/App/AppStore/Version/VersionTest.php

25 lines
590 B

<?php
declare(strict_types=1);
/**
* 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(): void {
$version = new Version('9', '10');
$this->assertSame('9', $version->getMinimumVersion());
}
public function testGetMaximumVersion(): void {
$version = new Version('9', '10');
$this->assertSame('10', $version->getMaximumVersion());
}
}