Browse Source

increase core version number to trigger db ugprade and fix app manager tests

tags/v11.0RC2
Christoph Wurst 7 years ago
parent
commit
ddb659dd90
No account linked to committer's email address
2 changed files with 15 additions and 3 deletions
  1. 14
    2
      tests/lib/App/ManagerTest.php
  2. 1
    1
      version.php

+ 14
- 2
tests/lib/App/ManagerTest.php View File

$this->appConfig->setValue('test1', 'enabled', 'yes'); $this->appConfig->setValue('test1', 'enabled', 'yes');
$this->appConfig->setValue('test2', 'enabled', 'no'); $this->appConfig->setValue('test2', 'enabled', 'no');
$this->appConfig->setValue('test3', 'enabled', '["foo"]'); $this->appConfig->setValue('test3', 'enabled', '["foo"]');
$this->assertEquals(['dav', 'federatedfilesharing', 'files', 'test1', 'test3', 'workflowengine'], $this->manager->getInstalledApps());
$apps = ['dav', 'federatedfilesharing', 'files', 'test1', 'test3', 'twofactor_backupcodes', 'workflowengine'];
$this->assertEquals($apps, $this->manager->getInstalledApps());
} }


public function testGetAppsForUser() { public function testGetAppsForUser() {
$this->appConfig->setValue('test2', 'enabled', 'no'); $this->appConfig->setValue('test2', 'enabled', 'no');
$this->appConfig->setValue('test3', 'enabled', '["foo"]'); $this->appConfig->setValue('test3', 'enabled', '["foo"]');
$this->appConfig->setValue('test4', 'enabled', '["asd"]'); $this->appConfig->setValue('test4', 'enabled', '["asd"]');
$this->assertEquals(['dav', 'federatedfilesharing', 'files', 'test1', 'test3', 'workflowengine'], $this->manager->getEnabledAppsForUser($user));
$enabled = [
'dav',
'federatedfilesharing',
'files',
'test1',
'test3',
'twofactor_backupcodes',
'workflowengine'
];
$this->assertEquals($enabled, $this->manager->getEnabledAppsForUser($user));
} }


public function testGetAppsNeedingUpgrade() { public function testGetAppsNeedingUpgrade() {
'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'], 'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'],
'test4' => ['id' => 'test4', 'version' => '3.0.0', 'requiremin' => '8.1.0'], 'test4' => ['id' => 'test4', 'version' => '3.0.0', 'requiremin' => '8.1.0'],
'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'],
'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'],
'workflowengine' => ['id' => 'workflowengine'], 'workflowengine' => ['id' => 'workflowengine'],
]; ];


'test2' => ['id' => 'test2', 'version' => '1.0.0', 'requiremin' => '8.2.0'], 'test2' => ['id' => 'test2', 'version' => '1.0.0', 'requiremin' => '8.2.0'],
'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'], 'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'],
'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'],
'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'],
'workflowengine' => ['id' => 'workflowengine'], 'workflowengine' => ['id' => 'workflowengine'],
]; ];



+ 1
- 1
version.php View File

// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades // We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel // between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number. // when updating major/minor version number.
$OC_Version = array(9, 2, 0, 2);
$OC_Version = array(9, 2, 0, 3);


// The human readable string // The human readable string
$OC_VersionString = '11.0 alpha'; $OC_VersionString = '11.0 alpha';

Loading…
Cancel
Save