@@ -838,7 +838,8 @@ public function testGetIdentities(
838
838
$ this ->assertEquals ($ expected , $ this ->model ->getIdentities ());
839
839
}
840
840
841
- protected function getMockForExtensionAttribute () {
841
+ protected function getMockForExtensionAttribute ()
842
+ {
842
843
$ extensionAttributesMock = $ this ->getMockBuilder (ExtensionAttributesInterface::class)
843
844
->disableOriginalConstructor ()
844
845
->addMethods (['getStockItem ' ])
@@ -849,23 +850,18 @@ protected function getMockForExtensionAttribute() {
849
850
$ extensionAttributesMock ->expects ($ this ->any ())->method ('getStockItem ' )->willReturn ($ stockItemMock );
850
851
return $ extensionAttributesMock ;
851
852
}
852
-
853
- protected function getMockForStockInterface () {
854
- $ stockItemMock = $ this ->getMockBuilder (StockItemInterface::class)
855
- ->disableOriginalConstructor ()
856
- ->getMockForAbstractClass ();
857
- $ stockItemMock ->expects ($ this ->any ())->method ('getIsInStock ' )->willReturn (true );
858
- }
859
-
860
853
/**
861
854
* @return array
862
855
*/
863
856
public static function getIdentitiesProvider (): array
864
857
{
865
858
$ extensionAttributesMock = static fn (self $ testCase )
866
859
=> $ testCase ->getMockForExtensionAttribute ();
867
- $ stockItemMock = static fn (self $ testCase )
868
- => $ testCase ->getMockForStockInterface ();
860
+ /** Unused lines of code */
861
+ // $stockItemMock = $this->getMockBuilder(StockItemInterface::class)
862
+ // ->disableOriginalConstructor()
863
+ // ->getMockForAbstractClass();
864
+ // $stockItemMock->expects($this->any())->method('getIsInStock')->willReturn(true);
869
865
870
866
return [
871
867
'no changes ' => [
0 commit comments