File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Model/Category/Plugin Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1212use Magento \Catalog \Model \Product \Media \ConfigInterface ;
1313use Magento \Framework \App \Bootstrap as AppBootstrap ;
1414use Magento \Framework \App \Filesystem \DirectoryList ;
15+ use Magento \Framework \App \ResourceConnection ;
1516use Magento \Framework \Exception \NoSuchEntityException ;
1617use Magento \Framework \Filesystem ;
1718use Magento \Framework \Filesystem \Driver \File ;
@@ -139,6 +140,9 @@ private function removeFiles(): void
139140 */
140141 private function removeProducts (): void
141142 {
143+ $ resource = $ this ->objectManager ->get (ResourceConnection::class);
144+ $ connection = $ resource ->getConnection ();
145+ $ connection ->delete ('catalog_category_product ' );
142146 foreach ($ this ->createdProductsSkus as $ sku ) {
143147 try {
144148 $ this ->productRepository ->deleteById ($ sku );
You can’t perform that action at this time.
0 commit comments