also adjust version no in unit tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-02-20 17:29:31 +01:00
parent f58796e21c
commit f9b2574fb8
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 6 additions and 6 deletions

View File

@ -118,8 +118,8 @@ class UUIDFixInsertTest extends TestCase {
public function testRun($userBatches, $groupBatches) {
$this->config->expects($this->once())
->method('getAppValue')
->with('user_ldap', 'installed_version', '1.2.1')
->willReturn('1.2.0');
->with('user_ldap', 'installed_version', '1.1.2')
->willReturn('1.1.1');
$this->userMapper->expects($this->exactly(3))
->method('getList')
@ -145,8 +145,8 @@ class UUIDFixInsertTest extends TestCase {
public function testRunWithManyAndNone($userBatches, $groupBatches) {
$this->config->expects($this->once())
->method('getAppValue')
->with('user_ldap', 'installed_version', '1.2.1')
->willReturn('1.2.0');
->with('user_ldap', 'installed_version', '1.1.2')
->willReturn('1.1.1');
$this->userMapper->expects($this->exactly(5))
->method('getList')
@ -179,8 +179,8 @@ class UUIDFixInsertTest extends TestCase {
public function testDonNotRun() {
$this->config->expects($this->once())
->method('getAppValue')
->with('user_ldap', 'installed_version', '1.2.1')
->willReturn('1.2.1');
->with('user_ldap', 'installed_version', '1.1.2')
->willReturn('1.1.2');
$this->userMapper->expects($this->never())
->method('getList');
$this->groupMapper->expects($this->never())