diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-20 11:14:30 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-20 11:14:30 +0200 |
commit | a2674b2b303c6b2a5935638af04f0e4a61afae24 (patch) | |
tree | 3d067ca9f3a187b99a9f5184586a8dd8653e043b /tests | |
parent | b919ae96f093a927e83f9f114a34400a4095ea5e (diff) | |
download | nextcloud-server-a2674b2b303c6b2a5935638af04f0e4a61afae24.tar.gz nextcloud-server-a2674b2b303c6b2a5935638af04f0e4a61afae24.zip |
Additions to update page
Apps to update and to disable will always be shown.
Main title changes only when apps need updated, not core.
Added bullet style.
Exclude incompatible apps from updated apps list.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/app/manager.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/app/manager.php b/tests/lib/app/manager.php index 248112722c4..7333d7601b1 100644 --- a/tests/lib/app/manager.php +++ b/tests/lib/app/manager.php @@ -212,9 +212,10 @@ class Manager extends \PHPUnit_Framework_TestCase { ->getMock(); $appInfos = [ - 'test1' => ['id' => 'test1', 'version' => '1.0.1', 'requiremax' => '8.0.0'], + 'test1' => ['id' => 'test1', 'version' => '1.0.1', 'requiremax' => '9.0.0'], 'test2' => ['id' => 'test2', 'version' => '1.0.0', 'requiremin' => '8.2.0'], 'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'], + 'test4' => ['id' => 'test4', 'version' => '3.0.0', 'requiremin' => '8.1.0'], 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], ]; @@ -232,12 +233,14 @@ class Manager extends \PHPUnit_Framework_TestCase { $this->appConfig->setValue('test2', 'installed_version', '1.0.0'); $this->appConfig->setValue('test3', 'enabled', 'yes'); $this->appConfig->setValue('test3', 'installed_version', '1.0.0'); + $this->appConfig->setValue('test4', 'enabled', 'yes'); + $this->appConfig->setValue('test4', 'installed_version', '2.4.0'); - $apps = $this->manager->getAppsNeedingUpgrade(); + $apps = $this->manager->getAppsNeedingUpgrade('8.2.0'); $this->assertCount(2, $apps); $this->assertEquals('test1', $apps[0]['id']); - $this->assertEquals('test3', $apps[1]['id']); + $this->assertEquals('test4', $apps[1]['id']); } public function testGetIncompatibleApps() { |