File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/Sales/Test/Unit/Model/AdminOrder Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 30
30
use Magento \Sales \Model \Order \Item as OrderItem ;
31
31
use Magento \Sales \Model \ResourceModel \Order \Item \Collection as ItemCollection ;
32
32
use Magento \Store \Api \Data \StoreInterface ;
33
- use PHPUnit_Framework_MockObject_MockObject as MockObject ;
33
+ use PHPUnit \Framework \TestCase ;
34
+ use PHPUnit \Framework \MockObject \MockObject ;
34
35
35
36
/**
36
37
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
37
38
* @SuppressWarnings(PHPMD.TooManyFields)
38
39
*/
39
- class CreateTest extends \ PHPUnit \ Framework \ TestCase
40
+ class CreateTest extends TestCase
40
41
{
41
42
const CUSTOMER_ID = 1 ;
42
43
@@ -46,12 +47,12 @@ class CreateTest extends \PHPUnit\Framework\TestCase
46
47
private $ adminOrderCreate ;
47
48
48
49
/**
49
- * @var CartRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject
50
+ * @var CartRepositoryInterface|MockObject
50
51
*/
51
52
private $ quoteRepository ;
52
53
53
54
/**
54
- * @var QuoteFactory|\PHPUnit_Framework_MockObject_MockObject
55
+ * @var QuoteFactory|MockObject
55
56
*/
56
57
private $ quoteFactory ;
57
58
@@ -111,7 +112,7 @@ protected function setUp()
111
112
->setMethods (['getForCustomer ' ])
112
113
->getMockForAbstractClass ();
113
114
114
- $ this ->sessionQuote = $ this ->getMockBuilder (\ Magento \ Backend \ Model \ Session \Quote ::class)
115
+ $ this ->sessionQuote = $ this ->getMockBuilder (SessionQuote ::class)
115
116
->disableOriginalConstructor ()
116
117
->setMethods (
117
118
[
You can’t perform that action at this time.
0 commit comments