summaryrefslogtreecommitdiffstats
path: root/tests/lib/app
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-12-11 15:37:45 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-12-11 15:37:45 +0100
commit6566dc83e798b0956c1646b0a4e91873cc08bb9a (patch)
treeb6e3bf8831c8fa92aa165a9333f120127dbb8d33 /tests/lib/app
parent95fc5addec189d21f4d714e3863c81d85d95ce09 (diff)
downloadnextcloud-server-6566dc83e798b0956c1646b0a4e91873cc08bb9a.tar.gz
nextcloud-server-6566dc83e798b0956c1646b0a4e91873cc08bb9a.zip
single dependencies will not be represented as an array + fix unit tests
Diffstat (limited to 'tests/lib/app')
-rw-r--r--tests/lib/app/dependencyanalyzer.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/lib/app/dependencyanalyzer.php b/tests/lib/app/dependencyanalyzer.php
index 9c5db96e045..8443dc5d319 100644
--- a/tests/lib/app/dependencyanalyzer.php
+++ b/tests/lib/app/dependencyanalyzer.php
@@ -174,7 +174,7 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
'dependencies' => array()
);
if (!is_null($oc)) {
- $app['dependencies']['oc'] = $oc;
+ $app['dependencies']['owncloud'] = $oc;
}
$analyser = new \OC\App\DependencyAnalyzer($app, $this->platformMock, $this->l10nMock);
@@ -197,6 +197,7 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
return array(
array(array(), null),
array(array(), array()),
+ array(array('Following platforms are supported: ANDROID'), 'ANDROID'),
array(array('Following platforms are supported: WINNT'), array('WINNT'))
);
}
@@ -204,7 +205,7 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
function providesLibs() {
return array(
// we expect curl to exist
- array(array(), array('curl')),
+ array(array(), 'curl'),
// we expect abcde to exist
array(array('The library abcde is not available.'), array('abcde')),
// curl in version 100.0 does not exist
@@ -226,7 +227,7 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
// we don't care about tools on Windows - we are on Linux
array(array(), array(array('@attributes' => array('os' => 'Windows'), '@value' => 'grepp'))),
// grep is known on all systems
- array(array(), array('grep')),
+ array(array(), 'grep'),
);
}
@@ -235,6 +236,7 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
// non BC - in case on databases are defined -> all are supported
array(array(), null),
array(array(), array()),
+ array(array('Following databases are supported: mongodb'), 'mongodb'),
array(array('Following databases are supported: sqlite, postgres'), array('sqlite', array('@value' => 'postgres'))),
);
}