@@ -74,7 +74,7 @@ protected function setUp()
74
74
'hasData ' ,
75
75
'getParentId ' ,
76
76
'dataHasChangedFor ' ,
77
- 'getIsChangedProductList ' ,
77
+ 'getChangedProductIds ' ,
78
78
]);
79
79
$ this ->observer ->expects ($ this ->any ())
80
80
->method ('getEvent ' )
@@ -131,6 +131,7 @@ public function testExecuteHasStoreId()
131
131
->willReturn (2 );
132
132
$ this ->category ->expects ($ this ->once ())
133
133
->method ('hasData ' )
134
+ ->with ('store_id ' )
134
135
->willReturn (true );
135
136
$ this ->storeGroupFactory ->expects ($ this ->never ())
136
137
->method ('create ' );
@@ -143,8 +144,8 @@ public function testExecuteHasStoreId()
143
144
]
144
145
);
145
146
$ this ->category ->expects ($ this ->once ())
146
- ->method ('getIsChangedProductList ' )
147
- ->willReturn (false );
147
+ ->method ('getChangedProductIds ' )
148
+ ->willReturn ([] );
148
149
149
150
$ this ->categoryProcessUrlRewriteSavingObserver ->execute ($ this ->observer );
150
151
}
@@ -169,8 +170,8 @@ public function testExecuteHasNotChanges()
169
170
]
170
171
);
171
172
$ this ->category ->expects ($ this ->once ())
172
- ->method ('getIsChangedProductList ' )
173
- ->willReturn (false );
173
+ ->method ('getChangedProductIds ' )
174
+ ->willReturn ([] );
174
175
$ this ->databaseMapPoolMock ->expects ($ this ->never ())
175
176
->method ('resetMap ' );
176
177
@@ -197,8 +198,8 @@ public function testExecuteHasChanges()
197
198
]
198
199
);
199
200
$ this ->category ->expects ($ this ->any ())
200
- ->method ('getIsChangedProductList ' )
201
- ->willReturn (false );
201
+ ->method ('getChangedProductIds ' )
202
+ ->willReturn ([] );
202
203
203
204
$ result1 = ['test ' ];
204
205
$ this ->categoryUrlRewriteGeneratorMock ->expects ($ this ->once ())
0 commit comments