summaryrefslogtreecommitdiffstats
path: root/tests/lib/app/dependencyanalyzer.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/app/dependencyanalyzer.php')
-rw-r--r--tests/lib/app/dependencyanalyzer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/app/dependencyanalyzer.php b/tests/lib/app/dependencyanalyzer.php
index 25f2ad8caa8..122eb377d55 100644
--- a/tests/lib/app/dependencyanalyzer.php
+++ b/tests/lib/app/dependencyanalyzer.php
@@ -55,10 +55,10 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
)
);
if (!is_null($minVersion)) {
- $app['dependencies']['php']['min-version'] = $minVersion;
+ $app['dependencies']['php']['@attributes']['min-version'] = $minVersion;
}
if (!is_null($maxVersion)) {
- $app['dependencies']['php']['max-version'] = $maxVersion;
+ $app['dependencies']['php']['@attributes']['max-version'] = $maxVersion;
}
$analyser = new \OC\App\DependencyAnalyzer($app, $this->platformMock, $this->l10nMock);
$missing = $analyser->analyze();
@@ -77,7 +77,7 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
)
);
if (!is_null($databases)) {
- $app['dependencies']['database'] = $databases;
+ $app['dependencies']['databases'] = $databases;
}
$analyser = new \OC\App\DependencyAnalyzer($app, $this->platformMock, $this->l10nMock);
$missing = $analyser->analyze();
@@ -92,7 +92,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: sqlite, postgres'), array('sqlite', 'postgres')),
+ array(array('Following databases are supported: sqlite, postgres'), array('sqlite', array('@value' => 'postgres'))),
);
}