diff options
author | Olivier Paroz <github@oparoz.com> | 2015-08-21 02:11:32 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-08-21 02:11:32 +0300 |
commit | e8340da8fe6d3b333ad8b1d99a85ecb9ea2484c2 (patch) | |
tree | bc7852bfc16156cd7e2d7657ba6794dc230213a3 /tests/integration | |
parent | 0aba55017386a6e56673a62bedcaf88cdadf3e59 (diff) |
Max version is PHP 7
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/appinfo/AppTest.php | 20 |
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']); + } } |