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 8
8
namespace Magento \Catalog \Controller \Adminhtml \Product \Save ;
9
9
10
10
use Magento \Catalog \Api \ProductRepositoryInterface ;
11
+ use Magento \Catalog \Model \Category ;
11
12
use Magento \Framework \App \Request \Http as HttpRequest ;
12
13
use Magento \Framework \Message \MessageInterface ;
14
+ use Magento \TestFramework \Helper \Bootstrap ;
13
15
use Magento \TestFramework \TestCase \AbstractBackendController ;
14
16
15
17
/**
16
18
* @magentoDbIsolation disabled
17
- * @magentoDataFixture Magento/Catalog/_files/category_product.php
18
19
* @magentoAppArea adminhtml
19
20
*/
20
21
class DeleteCategoryTest extends AbstractBackendController
@@ -25,21 +26,21 @@ class DeleteCategoryTest extends AbstractBackendController
25
26
private $ productRepository ;
26
27
27
28
/**
28
- * @inheritdoc
29
+ * @inheritDoc
29
30
*/
30
31
protected function setUp (): void
31
32
{
32
33
parent ::setUp ();
33
34
$ this ->productRepository = $ this ->_objectManager ->get (ProductRepositoryInterface::class);
34
-
35
35
}
36
36
37
37
/**
38
38
* Checks product saving with deleted category before reindex is done
39
+ * @magentoDataFixture Magento/Catalog/_files/category_product.php
39
40
*/
40
41
public function testDeleteCustomOptionWithTypeField (): void
41
42
{
42
- $ category = \ Magento \ TestFramework \ Helper \ Bootstrap::getObjectManager ()->create (\ Magento \ Catalog \ Model \ Category::class);
43
+ $ category = Bootstrap::getObjectManager ()->create (Category::class);
43
44
$ category ->load (333 );
44
45
$ category ->delete ();
45
46
$ product = $ this ->productRepository ->get ('simple333 ' );
You can’t perform that action at this time.
0 commit comments