Jeroen De Dauw has submitted this change and it was merged.

Change subject: Added test for line 135 of MapPatcher
......................................................................


Added test for line 135 of MapPatcher

Change-Id: Ica65774ca9b1c394734f3bc8527a42322f0d3973
---
M tests/phpunit/patcher/MapPatcherTest.php
1 file changed, 15 insertions(+), 0 deletions(-)

Approvals:
  Jeroen De Dauw: Looks good to me, approved



diff --git a/tests/phpunit/patcher/MapPatcherTest.php 
b/tests/phpunit/patcher/MapPatcherTest.php
index e418bbb..adf38a6 100644
--- a/tests/phpunit/patcher/MapPatcherTest.php
+++ b/tests/phpunit/patcher/MapPatcherTest.php
@@ -131,6 +131,21 @@
 
                $argLists[] = array( $patcher, $base, $diff, $expected );
 
+
+               $patcher = new MapPatcher();
+               $base = array(
+                       'foo' => 'bar',
+               );
+               $diff = new Diff( array(
+                       'baz' => new Diff( array( new DiffOpAdd( 'ny' ), new 
DiffOpAdd( 'an' ) ), false ),
+               ) );
+               $expected = array(
+                       'foo' => 'bar',
+                       'baz' => array( 'ny', 'an' ),
+               );
+
+               $argLists[] = array( $patcher, $base, $diff, $expected );
+
                // TODO
 
                return $argLists;

-- 
To view, visit https://gerrit.wikimedia.org/r/65260
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ica65774ca9b1c394734f3bc8527a42322f0d3973
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Diff
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Anja Jentzsch <[email protected]>
Gerrit-Reviewer: Ataherivand <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Daniel Werner <[email protected]>
Gerrit-Reviewer: Denny Vrandecic <[email protected]>
Gerrit-Reviewer: Henning Snater <[email protected]>
Gerrit-Reviewer: Jens Ohlig <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: John Erling Blad <[email protected]>
Gerrit-Reviewer: Lydia Pintscher <[email protected]>
Gerrit-Reviewer: Markus Kroetzsch <[email protected]>
Gerrit-Reviewer: Nikola Smolenski <[email protected]>
Gerrit-Reviewer: Silke Meyer <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to