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 12
12
use Magento \Catalog \Model \Product \Media \ConfigInterface ;
13
13
use Magento \Framework \App \Bootstrap as AppBootstrap ;
14
14
use Magento \Framework \App \Filesystem \DirectoryList ;
15
+ use Magento \Framework \App \ResourceConnection ;
15
16
use Magento \Framework \Exception \NoSuchEntityException ;
16
17
use Magento \Framework \Filesystem ;
17
18
use Magento \Framework \Filesystem \Driver \File ;
@@ -139,6 +140,9 @@ private function removeFiles(): void
139
140
*/
140
141
private function removeProducts (): void
141
142
{
143
+ $ resource = $ this ->objectManager ->get (ResourceConnection::class);
144
+ $ connection = $ resource ->getConnection ();
145
+ $ connection ->delete ('catalog_category_product ' );
142
146
foreach ($ this ->createdProductsSkus as $ sku ) {
143
147
try {
144
148
$ this ->productRepository ->deleteById ($ sku );
You can’t perform that action at this time.
0 commit comments