diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-03-22 09:55:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-22 09:55:19 +0100 |
commit | f843b7edfe7b3bc6e45d4610778d2df98b3985e3 (patch) | |
tree | 396188e1db0681fe4a3b3d55d3585b5915905bab /tests | |
parent | be35b54f69f7c54318adc3bb46d23506afcebd09 (diff) | |
parent | 514de5dfa18d92d2f7bb15c9840d685b25300f4c (diff) | |
download | nextcloud-server-f843b7edfe7b3bc6e45d4610778d2df98b3985e3.tar.gz nextcloud-server-f843b7edfe7b3bc6e45d4610778d2df98b3985e3.zip |
Merge pull request #8506 from nextcloud/use-appmanager
Use isInstalled of AppManger instead of reimplement it
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/InstallerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/InstallerTest.php b/tests/lib/InstallerTest.php index c7e4bfeacfb..824682740e2 100644 --- a/tests/lib/InstallerTest.php +++ b/tests/lib/InstallerTest.php @@ -103,9 +103,9 @@ class InstallerTest extends TestCase { \OC::$server->getLogger(), \OC::$server->getConfig() ); - $installer->installApp(self::$appid); - $isInstalled = Installer::isInstalled(self::$appid); - $this->assertTrue($isInstalled); + $this->assertNull(\OC::$server->getConfig()->getAppValue('testapp', 'enabled', null), 'Check that the app is not listed before installation'); + $this->assertSame('testapp', $installer->installApp(self::$appid)); + $this->assertSame('no', \OC::$server->getConfig()->getAppValue('testapp', 'enabled', null), 'Check that the app is listed after installation'); $this->assertSame('0.9', \OC::$server->getConfig()->getAppValue('testapp', 'installed_version')); $installer->removeApp(self::$appid); } |