From: Paul Mehrer Date: Mon, 6 Mar 2017 15:33:25 +0000 (+0100) Subject: fix modlog test undo X-Git-Tag: 2017.02.2~3^2^2~2 X-Git-Url: http://git.tine20.org/?p=tine20;a=commitdiff_plain;h=f239e181c3da5854f5836dd9e4bf598bee9c653d;hp=55bf20170e957a6e19168a9b5cc682ac4260785d fix modlog test undo Change-Id: Iae6602da41611a587aa0a8b2f0dd1b5e11f7d3d4 Reviewed-on: http://gerrit.tine20.com/customers/4308 Reviewed-by: Paul Mehrer Tested-by: Paul Mehrer --- 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