File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Test/Unit/Model/Product/Type
Reports/Model/Product/Index
dev/tests/integration/testsuite/Magento/Newsletter/Controller Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ public function getAssociatedProducts($product)
236
236
*/
237
237
public function flushAssociatedProductsCache ($ product )
238
238
{
239
- return $ product ->unsData ($ this ->_keyAssociatedProducts );
239
+ return $ product ->unsetData ($ this ->_keyAssociatedProducts );
240
240
}
241
241
242
242
/**
Original file line number Diff line number Diff line change @@ -611,9 +611,9 @@ public function testPrepareForCartAdvancedZeroQty()
611
611
612
612
public function testFlushAssociatedProductsCache ()
613
613
{
614
- $ productMock = $ this ->createPartialMock (\Magento \Catalog \Model \Product::class, ['unsData ' ]);
614
+ $ productMock = $ this ->createPartialMock (\Magento \Catalog \Model \Product::class, ['unsetData ' ]);
615
615
$ productMock ->expects ($ this ->once ())
616
- ->method ('unsData ' )
616
+ ->method ('unsetData ' )
617
617
->with ('_cache_instance_associated_products ' )
618
618
->willReturnSelf ();
619
619
$ this ->assertEquals ($ productMock , $ this ->_model ->flushAssociatedProductsCache ($ productMock ));
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ public function clean()
252
252
public function registerIds ($ productIds )
253
253
{
254
254
$ this ->_getResource ()->registerIds ($ this , $ productIds );
255
- $ this ->_getSession ()->unsData ($ this ->_countCacheKey );
255
+ $ this ->_getSession ()->unsetData ($ this ->_countCacheKey );
256
256
return $ this ;
257
257
}
258
258
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ protected function setUp()
40
40
protected function tearDown ()
41
41
{
42
42
$ this ->customerSession ->setCustomerId (null );
43
- $ this ->coreSession ->unsData ('_form_key ' );
43
+ $ this ->coreSession ->unsetData ('_form_key ' );
44
44
}
45
45
46
46
/**
You can’t perform that action at this time.
0 commit comments