Skip to content

Commit f590127

Browse files
committed
#23279: Integration test for unsubscribing from 'Back in stock notification'
fixing small formatiing issues
1 parent 665aad5 commit f590127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/integration/testsuite/Magento/ProductAlert/_files/customer_unsubscribe_stock_rollback.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
$objectManager = Bootstrap::getObjectManager();
1212
$resource = $objectManager->get(Stock::class);
1313

14-
$productRepository = $objectManager->create(ProductRepositoryInterface::class);
14+
$productRepository = $objectManager->get(ProductRepositoryInterface::class);
1515
$productId = $productRepository->get('simple-out-of-stock')->getId();
1616

1717
$resource->getConnection()->delete(
1818
$resource->getMainTable(),
19-
'product_id = ' . $productId
19+
['product_id = ?' => $productId]
2020
);

0 commit comments

Comments
 (0)