28
28
use Magento \Store \Test \Fixture \Website as WebsiteFixture ;
29
29
use Magento \TestFramework \Fixture \Config ;
30
30
use Magento \TestFramework \Fixture \DataFixture ;
31
+ use Magento \TestFramework \Fixture \DataFixtureStorage ;
31
32
use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
32
33
use Magento \TestFramework \Helper \Bootstrap ;
33
34
use Magento \TestFramework \TestCase \GraphQlAbstract ;
34
35
35
36
/**
36
37
* GraphQl tests for @see \Magento\SalesGraphQl\Model\Resolver\CustomerOrders.
37
38
*/
38
- class GetCustomerOrdersTest extends GraphQlAbstract
39
+ class CustomerOrdersTest extends GraphQlAbstract
39
40
{
40
41
/**
41
42
* @var CustomerTokenServiceInterface
@@ -62,8 +63,14 @@ class GetCustomerOrdersTest extends GraphQlAbstract
62
63
*/
63
64
private $ objectManager ;
64
65
66
+ /**
67
+ * @var DataFixtureStorage
68
+ */
69
+ private $ fixtures ;
70
+
65
71
/**
66
72
* @inheridoc
73
+ * @throws LocalizedException
67
74
*/
68
75
protected function setUp (): void
69
76
{
@@ -128,10 +135,9 @@ protected function setUp(): void
128
135
]
129
136
public function testGetCustomerOrders ()
130
137
{
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 ' );
135
141
$ currentEmail = $ customer ->getEmail ();
136
142
$ currentPassword = 'password ' ;
137
143
0 commit comments