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()
6767 $ this ->assertSame ($ retValue , $ this ->model ->getOverriddenValue ());
6868 }
6969
70+ /**
71+ * @expectedException \Magento\Framework\Exception\NoSuchEntityException
72+ */
7073 public function testGetOverriddenValueIsCustomerAndCartDoesNotExist ()
7174 {
7275 $ customerId = 1 ;
@@ -83,7 +86,7 @@ public function testGetOverriddenValueIsCustomerAndCartDoesNotExist()
8386 ->with ($ customerId )
8487 ->will ($ this ->throwException (new NoSuchEntityException ()));
8588
86- $ this ->assertNull ( $ this -> model ->getOverriddenValue () );
89+ $ this ->model ->getOverriddenValue ();
8790 }
8891
8992 public function testGetOverriddenValueIsCustomerAndCartIsNull ()
You can’t perform that action at this time.
0 commit comments