summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-22 16:00:26 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-03-21 11:34:18 +0100
commit514de5dfa18d92d2f7bb15c9840d685b25300f4c (patch)
tree8a1538364a515507f60077a827de5fce07a1ae38 /tests
parent2d5febd0b9fe7f5b9e6a463fa877fef1148921c8 (diff)
downloadnextcloud-server-514de5dfa18d92d2f7bb15c9840d685b25300f4c.tar.gz
nextcloud-server-514de5dfa18d92d2f7bb15c9840d685b25300f4c.zip
Use isInstalled of AppManger instead of reimplement it
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/InstallerTest.php6
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);
}