File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Sales \Model \AdminOrder ;
7
7
8
+ use Magento \Backend \Model \Auth ;
8
9
use Magento \Backend \Model \Session \Quote as SessionQuote ;
9
10
use Magento \Customer \Api \AddressRepositoryInterface ;
10
11
use Magento \Customer \Api \CustomerRepositoryInterface ;
@@ -42,11 +43,21 @@ class CreateTest extends \PHPUnit\Framework\TestCase
42
43
*/
43
44
private $ objectManager ;
44
45
46
+ /**
47
+ * @var Auth
48
+ */
49
+ private $ auth ;
50
+
45
51
protected function setUp ()
46
52
{
47
53
$ this ->objectManager = Bootstrap::getObjectManager ();
48
54
$ this ->messageManager = $ this ->objectManager ->get (ManagerInterface::class);
49
55
$ this ->model =$ this ->objectManager ->create (Create::class, ['messageManager ' => $ this ->messageManager ]);
56
+ $ this ->auth = $ this ->objectManager ->create (Auth::class);
57
+ $ this ->auth ->login (
58
+ \Magento \TestFramework \Bootstrap::ADMIN_NAME ,
59
+ \Magento \TestFramework \Bootstrap::ADMIN_PASSWORD
60
+ );
50
61
}
51
62
52
63
/**
You can’t perform that action at this time.
0 commit comments