File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Model Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1111use Magento \Catalog \Model \CategoryRepository ;
1212use Magento \Catalog \Model \ProductRepository ;
1313use Magento \CatalogUrlRewrite \Model \ResourceModel \Category \Product ;
14+ use Magento \Framework \App \ResourceConnection ;
1415use Magento \Framework \Exception \CouldNotSaveException ;
1516use Magento \Framework \Exception \LocalizedException ;
1617use Magento \Framework \Exception \NoSuchEntityException ;
@@ -44,6 +45,9 @@ protected function setUp(): void
4445 */
4546 public function testGenerateUrlRewritesWithoutSaveHistory ()
4647 {
48+ $ resource = $ this ->objectManager ->get (ResourceConnection::class);
49+ $ connection = $ resource ->getConnection ();
50+ $ connection ->delete ('url_rewrite ' );
4751 /** @var Category $category */
4852 $ category = $ this ->objectManager ->create (Category::class);
4953 $ category ->load (3 );
You can’t perform that action at this time.
0 commit comments