File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/Save Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 88namespace Magento \Catalog \Controller \Adminhtml \Product \Save ;
99
1010use Magento \Catalog \Api \ProductRepositoryInterface ;
11+ use Magento \Catalog \Model \Category ;
1112use Magento \Framework \App \Request \Http as HttpRequest ;
1213use Magento \Framework \Message \MessageInterface ;
14+ use Magento \TestFramework \Helper \Bootstrap ;
1315use Magento \TestFramework \TestCase \AbstractBackendController ;
1416
1517/**
1618 * @magentoDbIsolation disabled
17- * @magentoDataFixture Magento/Catalog/_files/category_product.php
1819 * @magentoAppArea adminhtml
1920 */
2021class DeleteCategoryTest extends AbstractBackendController
@@ -25,21 +26,21 @@ class DeleteCategoryTest extends AbstractBackendController
2526 private $ productRepository ;
2627
2728 /**
28- * @inheritdoc
29+ * @inheritDoc
2930 */
3031 protected function setUp (): void
3132 {
3233 parent ::setUp ();
3334 $ this ->productRepository = $ this ->_objectManager ->get (ProductRepositoryInterface::class);
34-
3535 }
3636
3737 /**
3838 * Checks product saving with deleted category before reindex is done
39+ * @magentoDataFixture Magento/Catalog/_files/category_product.php
3940 */
4041 public function testDeleteCustomOptionWithTypeField (): void
4142 {
42- $ category = \ Magento \ TestFramework \ Helper \ Bootstrap::getObjectManager ()->create (\ Magento \ Catalog \ Model \ Category::class);
43+ $ category = Bootstrap::getObjectManager ()->create (Category::class);
4344 $ category ->load (333 );
4445 $ category ->delete ();
4546 $ product = $ this ->productRepository ->get ('simple333 ' );
You can’t perform that action at this time.
0 commit comments