File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
api-functional/testsuite/Magento/Analytics/Api
integration/testsuite/Magento/Analytics/_files Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function testGetAll()
58
58
];
59
59
$ response = $ this ->_webApiCall ($ serviceInfo );
60
60
$ this ->assertEquals (2 , count ($ response ));
61
- $ this ->assertEquals ($ fileInfo ->getInitializationVector (), base64_encode ( $ response ['initialization_vector ' ]) );
61
+ $ this ->assertEquals (base64_encode ( $ fileInfo ->getInitializationVector ()), $ response ['initialization_vector ' ]);
62
62
$ this ->assertEquals (
63
63
$ storeManager ->getStore ()->getBaseUrl (
64
64
UrlInterface::URL_TYPE_MEDIA
Original file line number Diff line number Diff line change 14
14
/**
15
15
* @var $fileInfo \Magento\Analytics\Model\FileInfo
16
16
*/
17
- $ fileInfo = $ objectManager ->create (\ Magento \ Analytics \ Model \FileInfo::class);
18
-
19
- $ fileInfo -> setPath ( 'analytics/jsldjsfdkldf/data.tgz ' );
20
- $ fileInfo -> setInitializationVector ( " binaryDataisdodssds8iui " );
17
+ $ fileInfo = $ objectManager ->create (
18
+ \ Magento \ Analytics \ Model \FileInfo::class,
19
+ [ ' path ' => 'analytics/jsldjsfdkldf/data.tgz ' , ' initializationVector ' => ' binaryDataisdodssds8iui ' ]
20
+ );
21
21
22
22
$ fileInfoManager ->save ($ fileInfo );
You can’t perform that action at this time.
0 commit comments