File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Quote/Test/Unit/Model/Webapi Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ public function testGetOverriddenValueIsCustomerAndCartExists()
67
67
$ this ->assertSame ($ retValue , $ this ->model ->getOverriddenValue ());
68
68
}
69
69
70
+ /**
71
+ * @expectedException \Magento\Framework\Exception\NoSuchEntityException
72
+ */
70
73
public function testGetOverriddenValueIsCustomerAndCartDoesNotExist ()
71
74
{
72
75
$ customerId = 1 ;
@@ -83,7 +86,7 @@ public function testGetOverriddenValueIsCustomerAndCartDoesNotExist()
83
86
->with ($ customerId )
84
87
->will ($ this ->throwException (new NoSuchEntityException ()));
85
88
86
- $ this ->assertNull ( $ this -> model ->getOverriddenValue () );
89
+ $ this ->model ->getOverriddenValue ();
87
90
}
88
91
89
92
public function testGetOverriddenValueIsCustomerAndCartIsNull ()
You can’t perform that action at this time.
0 commit comments