File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
app/code/Magento/Sales/Test/Fixture Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
-
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
3
6
namespace Magento \Sales \Test \Fixture ;
4
7
5
8
use Magento \Framework \DataObject ;
@@ -46,10 +49,9 @@ public function __construct(
46
49
public function apply (array $ data = []): ?DataObject
47
50
{
48
51
$ service = $ this ->serviceFactory ->create (InvoiceCommentRepositoryInterface::class, 'save ' );
52
+ $ invoiceComment = $ service ->execute ($ this ->prepareData ($ data ));
49
53
50
- $ invoiceCommentId = $ service ->execute ($ this ->prepareData ($ data ));
51
-
52
- return $ this ->invoiceCommentRepository ->get ($ invoiceCommentId ->getId ());
54
+ return $ this ->invoiceCommentRepository ->get ($ invoiceComment ->getId ());
53
55
}
54
56
55
57
public function revert (DataObject $ data ): void
You can’t perform that action at this time.
0 commit comments