summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-08 22:57:09 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-08 22:57:18 +0200
commit5bcfc4e800c88508a915b1d6545d15449136dc0b (patch)
tree57a3e0a27d3521951cae25b2fab8e16fcc467286
parentc1a2867928cc483c81c467716a093d595fede5a7 (diff)
remove redundant owncloud version check
-rw-r--r--config/appconfig.php9
-rw-r--r--tests/unit/config/AppConfigTest.php13
2 files changed, 2 insertions, 20 deletions
diff --git a/config/appconfig.php b/config/appconfig.php
index 5292d35a7..ae8f268f5 100644
--- a/config/appconfig.php
+++ b/config/appconfig.php
@@ -175,17 +175,12 @@ class AppConfig {
$deps = $this->config['dependencies'];
- if(array_key_exists('php', $deps)) {
+ if (array_key_exists('php', $deps)) {
$msg .= $this->requireVersion($this->phpVersion, $deps['php'],
'PHP');
}
- if(array_key_exists('owncloud', $deps)) {
- $msg .= $this->requireVersion($this->ownCloudVersion,
- $deps['owncloud'], 'ownCloud');
- }
-
- if(array_key_exists('libs', $deps)) {
+ if (array_key_exists('libs', $deps)) {
foreach ($deps['libs'] as $lib => $versions) {
if(array_key_exists($lib, $this->installedExtensions)) {
$msg .= $this->requireVersion($this->installedExtensions[$lib],
diff --git a/tests/unit/config/AppConfigTest.php b/tests/unit/config/AppConfigTest.php
index 9053c6cbd..02a6ad8a5 100644
--- a/tests/unit/config/AppConfigTest.php
+++ b/tests/unit/config/AppConfigTest.php
@@ -146,19 +146,6 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase {
/**
* @expectedException \OCA\News\Config\DependencyException
*/
- public function testOwnCloudVersion() {
- $this->config->loadConfig([
- 'dependencies' => [
- 'owncloud' => '>=4.5,<=6.0.2'
- ]
- ]);
- $this->config->testDependencies();
- }
-
-
- /**
- * @expectedException \OCA\News\Config\DependencyException
- */
public function testLibsVersion() {
$this->config->loadConfig([
'dependencies' => [