Skip to content

Commit e0aa3e8

Browse files
committed
MAGETWO-94207: Cart GET for customer in REST returns 400 when cart not created
1 parent eec15ba commit e0aa3e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Quote/Test/Unit/Model/Webapi/ParamOverriderCartIdTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)