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 11
11
use Magento \Catalog \Model \CategoryRepository ;
12
12
use Magento \Catalog \Model \ProductRepository ;
13
13
use Magento \CatalogUrlRewrite \Model \ResourceModel \Category \Product ;
14
+ use Magento \Framework \App \ResourceConnection ;
14
15
use Magento \Framework \Exception \CouldNotSaveException ;
15
16
use Magento \Framework \Exception \LocalizedException ;
16
17
use Magento \Framework \Exception \NoSuchEntityException ;
@@ -44,6 +45,9 @@ protected function setUp(): void
44
45
*/
45
46
public function testGenerateUrlRewritesWithoutSaveHistory ()
46
47
{
48
+ $ resource = $ this ->objectManager ->get (ResourceConnection::class);
49
+ $ connection = $ resource ->getConnection ();
50
+ $ connection ->delete ('url_rewrite ' );
47
51
/** @var Category $category */
48
52
$ category = $ this ->objectManager ->create (Category::class);
49
53
$ category ->load (3 );
You can’t perform that action at this time.
0 commit comments