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 3030use Magento \Sales \Model \Order \Item as OrderItem ;
3131use Magento \Sales \Model \ResourceModel \Order \Item \Collection as ItemCollection ;
3232use Magento \Store \Api \Data \StoreInterface ;
33- use PHPUnit_Framework_MockObject_MockObject as MockObject ;
33+ use PHPUnit \Framework \TestCase ;
34+ use PHPUnit \Framework \MockObject \MockObject ;
3435
3536/**
3637 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3738 * @SuppressWarnings(PHPMD.TooManyFields)
3839 */
39- class CreateTest extends \ PHPUnit \ Framework \ TestCase
40+ class CreateTest extends TestCase
4041{
4142 const CUSTOMER_ID = 1 ;
4243
@@ -46,12 +47,12 @@ class CreateTest extends \PHPUnit\Framework\TestCase
4647 private $ adminOrderCreate ;
4748
4849 /**
49- * @var CartRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject
50+ * @var CartRepositoryInterface|MockObject
5051 */
5152 private $ quoteRepository ;
5253
5354 /**
54- * @var QuoteFactory|\PHPUnit_Framework_MockObject_MockObject
55+ * @var QuoteFactory|MockObject
5556 */
5657 private $ quoteFactory ;
5758
@@ -111,7 +112,7 @@ protected function setUp()
111112 ->setMethods (['getForCustomer ' ])
112113 ->getMockForAbstractClass ();
113114
114- $ this ->sessionQuote = $ this ->getMockBuilder (\ Magento \ Backend \ Model \ Session \Quote ::class)
115+ $ this ->sessionQuote = $ this ->getMockBuilder (SessionQuote ::class)
115116 ->disableOriginalConstructor ()
116117 ->setMethods (
117118 [
You can’t perform that action at this time.
0 commit comments