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 11<?php
2-
2+ /**
3+ * Copyright © Magento, Inc. All rights reserved.
4+ * See COPYING.txt for license details.
5+ */
36namespace Magento \Sales \Test \Fixture ;
47
58use Magento \Framework \DataObject ;
@@ -46,10 +49,9 @@ public function __construct(
4649 public function apply (array $ data = []): ?DataObject
4750 {
4851 $ service = $ this ->serviceFactory ->create (InvoiceCommentRepositoryInterface::class, 'save ' );
52+ $ invoiceComment = $ service ->execute ($ this ->prepareData ($ data ));
4953
50- $ invoiceCommentId = $ service ->execute ($ this ->prepareData ($ data ));
51-
52- return $ this ->invoiceCommentRepository ->get ($ invoiceCommentId ->getId ());
54+ return $ this ->invoiceCommentRepository ->get ($ invoiceComment ->getId ());
5355 }
5456
5557 public function revert (DataObject $ data ): void
You can’t perform that action at this time.
0 commit comments