10
10
use Magento \Customer \Api \Data \CustomerInterface ;
11
11
use Magento \Customer \Model \Customer ;
12
12
use Magento \Framework \App \RequestInterface ;
13
- use Magento \Framework \Exception \NoSuchEntityException ;
14
13
15
14
use Magento \Framework \HTTP \PhpEnvironment \RemoteAddress ;
16
15
use Magento \Quote \Model \CustomerManagement ;
@@ -315,7 +314,7 @@ public function testCreateEmptyCartForCustomer()
315
314
->expects ($ this ->once ())
316
315
->method ('getActiveForCustomer ' )
317
316
->with ($ userId )
318
- ->willThrowException (new NoSuchEntityException ());
317
+ ->willThrowException (new \ Magento \ Framework \ Exception \ NoSuchEntityException ());
319
318
$ customer = $ this ->getMockBuilder (CustomerInterface::class)
320
319
->setMethods (['getDefaultBilling ' ])->disableOriginalConstructor ()->getMockForAbstractClass ();
321
320
$ quoteAddress = $ this ->createPartialMock (
@@ -466,7 +465,7 @@ public function testAssignCustomerToNonanonymousCart()
466
465
}
467
466
468
467
/**
469
- * @expectedException NoSuchEntityException
468
+ * @expectedException \Magento\Framework\Exception\ NoSuchEntityException
470
469
*/
471
470
public function testAssignCustomerNoSuchCustomer ()
472
471
{
@@ -489,7 +488,7 @@ public function testAssignCustomerNoSuchCustomer()
489
488
->expects ($ this ->once ())
490
489
->method ('getById ' )
491
490
->with ($ customerId )
492
- ->willThrowException (new NoSuchEntityException ());
491
+ ->willThrowException (new \ Magento \ Framework \ Exception \ NoSuchEntityException ());
493
492
494
493
$ this ->expectExceptionMessage (
495
494
"No such entity. "
@@ -545,7 +544,7 @@ public function testAssignCustomer()
545
544
->expects ($ this ->once ())
546
545
->method ('getForCustomer ' )
547
546
->with ($ customerId )
548
- ->willThrowException (new NoSuchEntityException ());
547
+ ->willThrowException (new \ Magento \ Framework \ Exception \ NoSuchEntityException ());
549
548
550
549
$ activeQuoteMock = $ this ->createPartialMock (
551
550
Quote::class,
@@ -1001,7 +1000,7 @@ protected function prepareOrderFactory(
1001
1000
}
1002
1001
1003
1002
/**
1004
- * @throws NoSuchEntityException
1003
+ * @throws \Magento\Framework\Exception\ NoSuchEntityException
1005
1004
*/
1006
1005
public function testGetCartForCustomer ()
1007
1006
{
0 commit comments