File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
dev/tests/unit/Magento/FunctionalTestFramework/DataGenerator/Handlers Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 8
8
namespace tests \unit \Magento \FunctionalTestFramework \DataGenerator \Handlers ;
9
9
10
10
use Exception ;
11
+ use Magento \FunctionalTestingFramework \DataGenerator \Handlers \DataObjectHandler ;
11
12
use Magento \FunctionalTestingFramework \DataGenerator \Handlers \PersistedObjectHandler ;
12
13
use Magento \FunctionalTestingFramework \DataGenerator \Parsers \DataProfileSchemaParser ;
13
14
use Magento \FunctionalTestingFramework \DataGenerator \Persist \CurlHandler ;
14
15
use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
15
16
use Magento \FunctionalTestingFramework \Exceptions \TestReferenceException ;
16
17
use Magento \FunctionalTestingFramework \ObjectManager ;
17
18
use Magento \FunctionalTestingFramework \ObjectManagerFactory ;
18
- use Magento \FunctionalTestingFramework \DataGenerator \Handlers \DataObjectHandler ;
19
19
use ReflectionProperty ;
20
20
use tests \unit \Util \MagentoTestCase ;
21
- use tests \unit \Util \ObjectHandlerUtil ;
22
21
use tests \unit \Util \TestLoggingUtil ;
23
22
24
23
/**
@@ -261,15 +260,14 @@ public function testUpdateSimpleEntity(): void
261
260
" ;
262
261
263
262
// Mock Classes
264
- ObjectHandlerUtil::mockDataObjectHandlerWithData ($ parserOutput );
265
- $ this ->mockCurlHandler ($ jsonResponse );
263
+ $ this ->mockCurlHandler ($ jsonResponse , $ parserOutput );
266
264
$ handler = PersistedObjectHandler::getInstance ();
267
265
$ handler ->createEntity (
268
266
$ entityStepKey ,
269
267
$ scope ,
270
268
$ entityName
271
269
);
272
- $ this ->mockCurlHandler ($ updatedResponse );
270
+ $ this ->mockCurlHandler ($ updatedResponse, $ parserOutput );
273
271
274
272
// Call method
275
273
$ handler ->updateEntity (
You can’t perform that action at this time.
0 commit comments