Skip to content

Commit bcaa456

Browse files
committed
MC-37582: Fix Failing WebAPI GraphQL tests when DB table prefixes are enabled
- fix static failure
1 parent ef3e465 commit bcaa456

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
use Magento\Framework\EntityManager\MetadataPool;
1818
use Magento\Store\Model\Store;
1919
use Magento\Store\Model\StoreManagerInterface;
20-
use Magento\TestFramework\ObjectManager;
2120
use Magento\TestFramework\Helper\Bootstrap;
21+
use Magento\TestFramework\ObjectManager;
2222
use Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException;
2323
use Magento\TestFramework\TestCase\GraphQlAbstract;
2424

2525
/**
2626
* Test loading of category tree
27+
*
28+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2729
*/
2830
class CategoryTest extends GraphQlAbstract
2931
{
@@ -49,7 +51,7 @@ class CategoryTest extends GraphQlAbstract
4951

5052
protected function setUp(): void
5153
{
52-
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
54+
$this->objectManager = Bootstrap::getObjectManager();
5355
$this->categoryRepository = $this->objectManager->get(CategoryRepository::class);
5456
$this->store = $this->objectManager->get(Store::class);
5557
$this->metadataPool = $this->objectManager->get(MetadataPool::class);

0 commit comments

Comments
 (0)