1
1
<?php
2
-
3
2
/**
4
3
* Copyright © 2016 Magento. All rights reserved.
5
4
* See COPYING.txt for license details.
@@ -188,11 +187,12 @@ public function testExecuteUrlKey(
188
187
189
188
$ this ->product ->expects ($ this ->any ())
190
189
->method ('dataHasChangedFor ' )
191
- ->will ($ this ->returnValueMap ([
192
- ['visibility ' , $ isChangedVisibility ],
193
- ['url_key ' , $ isChangedUrlKey ]
194
- ])
195
- );
190
+ ->will ($ this ->returnValueMap (
191
+ [
192
+ ['visibility ' , $ isChangedVisibility ],
193
+ ['url_key ' , $ isChangedUrlKey ]
194
+ ]
195
+ ));
196
196
197
197
$ this ->product ->expects ($ this ->any ())
198
198
->method ('getIsChangedWebsites ' )
@@ -207,8 +207,15 @@ public function testExecuteUrlKey(
207
207
UrlRewrite::ENTITY_TYPE => ProductUrlRewriteGenerator::ENTITY_TYPE ,
208
208
UrlRewrite::REDIRECT_TYPE => 0 ,
209
209
]);
210
- $ this ->product ->expects ($ this ->any ())->method ('isVisibleInSiteVisibility ' )->will ($ this ->returnValue ($ visibilityResult ));
211
- $ this ->urlPersist ->expects ($ this ->exactly ($ expectedReplaceCount ))->method ('replace ' )->with ([3 => 'rewrite ' ]);
210
+
211
+ $ this ->product ->expects ($ this ->any ())
212
+ ->method ('isVisibleInSiteVisibility ' )
213
+ ->will ($ this ->returnValue ($ visibilityResult ));
214
+
215
+ $ this ->urlPersist ->expects ($ this ->exactly ($ expectedReplaceCount ))
216
+ ->method ('replace ' )
217
+ ->with ([3 => 'rewrite ' ]);
218
+
212
219
$ this ->model ->execute ($ this ->observer );
213
220
}
214
221
}
0 commit comments