Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-08-21 02:11:32 +0300
committerOlivier Paroz <github@oparoz.com>2015-08-21 02:11:32 +0300
commite8340da8fe6d3b333ad8b1d99a85ecb9ea2484c2 (patch)
treebc7852bfc16156cd7e2d7657ba6794dc230213a3 /tests/integration
parent0aba55017386a6e56673a62bedcaf88cdadf3e59 (diff)
Max version is PHP 7
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/appinfo/AppTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/integration/appinfo/AppTest.php b/tests/integration/appinfo/AppTest.php
index 6cfba17d..bf4bcf31 100644
--- a/tests/integration/appinfo/AppTest.php
+++ b/tests/integration/appinfo/AppTest.php
@@ -12,6 +12,8 @@
namespace OCA\Gallery\AppInfo;
+use \OCP\App;
+
use OCA\Gallery\Tests\Integration\GalleryIntegrationTest;
/**
@@ -25,4 +27,22 @@ class AppTest extends GalleryIntegrationTest {
$appManager = $this->container->query('OCP\App\IAppManager');
$this->assertTrue($appManager->isInstalled('gallery'));
}
+
+ public function testAppName() {
+ $appData = App::getAppInfo('gallery');
+
+ $this->assertSame('gallery', $appData['id']);
+ }
+
+ public function testAppLicense() {
+ $appData = App::getAppInfo('gallery');
+
+ $this->assertSame('AGPL', $appData['licence']);
+ }
+
+ public function testAppMaxPhpVersion() {
+ $appData = App::getAppInfo('gallery');
+
+ $this->assertSame('7', $appData['dependencies']['php']['@attributes']['max-version']);
+ }
}