2828use Magento \Store \Test \Fixture \Website as WebsiteFixture ;
2929use Magento \TestFramework \Fixture \Config ;
3030use Magento \TestFramework \Fixture \DataFixture ;
31+ use Magento \TestFramework \Fixture \DataFixtureStorage ;
3132use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
3233use Magento \TestFramework \Helper \Bootstrap ;
3334use Magento \TestFramework \TestCase \GraphQlAbstract ;
3435
3536/**
3637 * GraphQl tests for @see \Magento\SalesGraphQl\Model\Resolver\CustomerOrders.
3738 */
38- class GetCustomerOrdersTest extends GraphQlAbstract
39+ class CustomerOrdersTest extends GraphQlAbstract
3940{
4041 /**
4142 * @var CustomerTokenServiceInterface
@@ -62,8 +63,14 @@ class GetCustomerOrdersTest extends GraphQlAbstract
6263 */
6364 private $ objectManager ;
6465
66+ /**
67+ * @var DataFixtureStorage
68+ */
69+ private $ fixtures ;
70+
6571 /**
6672 * @inheridoc
73+ * @throws LocalizedException
6774 */
6875 protected function setUp (): void
6976 {
@@ -128,10 +135,9 @@ protected function setUp(): void
128135 ]
129136 public function testGetCustomerOrders ()
130137 {
131- $ fixtures = DataFixtureStorageManager::getStorage ();
132- $ store2 = $ fixtures ->get ('store2 ' );
133- $ store3 = $ fixtures ->get ('store3 ' );
134- $ customer = $ fixtures ->get ('customer ' );
138+ $ store2 = $ this ->fixtures ->get ('store2 ' );
139+ $ store3 = $ this ->fixtures ->get ('store3 ' );
140+ $ customer = $ this ->fixtures ->get ('customer ' );
135141 $ currentEmail = $ customer ->getEmail ();
136142 $ currentPassword = 'password ' ;
137143
0 commit comments