@@ -117,11 +117,11 @@ public function testAfterChangeParent()
117
117
$ storeIds = [0 , 1 ];
118
118
119
119
$ this ->storeManagerMock ->expects ($ this ->exactly (2 ))->method ('hasSingleStore ' )->willReturn (false );
120
- $ this ->categoryMock ->expects ($ this ->exactly (4 ))->method ('getStoreId ' )
121
- ->willReturnOnConsecutiveCalls (0 , 0 , 1 , 0 );
120
+ $ this ->categoryMock ->expects ($ this ->exactly (6 ))->method ('getStoreId ' )
121
+ ->willReturnOnConsecutiveCalls (0 , 0 , 1 , 0 , 1 , 0 );
122
122
$ this ->categoryMock ->expects ($ this ->once ())->method ('getStoreIds ' )->willReturn ($ storeIds );
123
- $ this ->categoryMock ->expects ($ this ->exactly (4 ))->method ('setStoreId ' )
124
- ->willReturnOnConsecutiveCalls (0 , 0 , 1 , 0 );
123
+ $ this ->categoryMock ->expects ($ this ->exactly (5 ))->method ('setStoreId ' )
124
+ ->willReturnOnConsecutiveCalls (0 , 0 , 1 , 0 , 1 );
125
125
126
126
$ this ->categoryMock ->expects ($ this ->exactly (2 ))->method ('getData ' )
127
127
->willReturnOnConsecutiveCalls ('1/3/5 ' , '1/3/5 ' );
@@ -146,9 +146,9 @@ public function testAfterChangeParent()
146
146
$ this ->categoryMock ->expects ($ this ->exactly (2 ))->method ('setUrlKey ' )->with ('url-key ' )
147
147
->willReturnSelf ();
148
148
149
- $ this ->categoryUrlPathGeneratorMock ->expects ($ this ->exactly (3 ))->method ('getUrlPath ' )
149
+ $ this ->categoryUrlPathGeneratorMock ->expects ($ this ->exactly (4 ))->method ('getUrlPath ' )
150
150
->with ($ this ->categoryMock )->willReturn ($ urlPath );
151
- $ this ->categoryMock ->expects ($ this ->exactly (3 ))->method ('setUrlPath ' )->with ($ urlPath );
151
+ $ this ->categoryMock ->expects ($ this ->exactly (4 ))->method ('setUrlPath ' )->with ($ urlPath );
152
152
153
153
$ this ->assertSame (
154
154
$ this ->subjectMock ,
0 commit comments