File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
dev/tests/integration/testsuite/Magento/Sales
Controller/Adminhtml/Order/Invoice Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
-
4
2
/**
5
3
* Copyright © Magento, Inc. All rights reserved.
6
4
* See COPYING.txt for license details.
7
5
*/
6
+ declare (strict_types=1 );
7
+
8
8
namespace Magento \Sales \Controller \Adminhtml \Order \Invoice ;
9
9
10
10
use PHPUnit \Framework \Constraint \StringContains ;
Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
-
4
2
/**
5
3
* Copyright © Magento, Inc. All rights reserved.
6
4
* See COPYING.txt for license details.
7
5
*/
6
+ declare (strict_types=1 );
8
7
9
8
namespace Magento \Sales \Model \Order ;
10
9
Original file line number Diff line number Diff line change 10
10
\Magento \TestFramework \Helper \Bootstrap::getInstance ()->loadArea ('frontend ' );
11
11
12
12
$ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
13
+ /** @var \Magento\Catalog\Model\Product $product */
13
14
$ product = $ objectManager ->create (\Magento \Catalog \Model \Product::class);
14
15
$ product ->setTypeId ('simple ' )
15
- ->setAttributeSetId (4 )
16
+ ->setAttributeSetId ($ product -> getDefaultAttributeSetId () )
16
17
->setName ('Simple Product ' )
17
18
->setSku ('simple-product-guest-quote ' )
18
19
->setPrice (10 )
You can’t perform that action at this time.
0 commit comments