From f239e181c3da5854f5836dd9e4bf598bee9c653d Mon Sep 17 00:00:00 2001
From: Paul Mehrer
Date: Mon, 6 Mar 2017 16:33:25 +0100
Subject: [PATCH] fix modlog test undo
Change-Id: Iae6602da41611a587aa0a8b2f0dd1b5e11f7d3d4
Reviewed-on: http://gerrit.tine20.com/customers/4308
Reviewed-by: Paul Mehrer
Tested-by: Paul Mehrer
---
tests/tine20/Tinebase/Timemachine/ModificationLogTest.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/tine20/Tinebase/Timemachine/ModificationLogTest.php b/tests/tine20/Tinebase/Timemachine/ModificationLogTest.php
index 38a28ff..75e1d0a 100644
--- a/tests/tine20/Tinebase/Timemachine/ModificationLogTest.php
+++ b/tests/tine20/Tinebase/Timemachine/ModificationLogTest.php
@@ -275,8 +275,8 @@ class Tinebase_Timemachine_ModificationLogTest extends PHPUnit_Framework_TestCas
array('field' => 'record_id', 'operator' => 'equals', 'value' => $contact->getId()),
array('field' => 'modification_time', 'operator' => 'within', 'value' => 'weekThis'),
));
- $result = $this->_modLogClass->undo($filter);
- $this->assertEquals(1, $result['totalcount'], 'did not get 1 undone modlog: ' . print_r($result, TRUE));
+ $result = $this->_modLogClass->undo($filter, true);
+ $this->assertEquals(2, $result['totalcount'], 'did not get 2 undone modlog: ' . print_r($result, TRUE));
$this->assertContains('1234', $result['undoneModlogs']->getFirstRecord()->old_value);
// check record after undo
--
2.7.4